DW Focus : Can I insert difference banner 728×90 for each category in category page?
1 Answers
Hi !
Please go to header.php, and replace this code
<?php if( is_active_sidebar( 'dw_focus_header' ) ) { ?>
<div id="sidebar-header">
<div>
<?php dynamic_sidebar('dw_focus_header'); ?>
</div>
</div>
<?php } ?>
by
<?php
$cat_desc = category_description();
if( $cat_desc ) {
echo $cat_desc;
} else {
if( is_active_sidebar( 'dw_focus_header' ) ) {
?>
<div id="sidebar-header">
<div>
<?php dynamic_sidebar('dw_focus_header'); ?>
</div>
</div>
<?php
}
}
?>
Regards,
Dominic
Please login or Register to submit your answer