nuttiyas
asked 7 years ago

DW Focus : Can I insert difference banner 728×90 for each category in category page?

1 Answers
DominicStaff
answered 7 years ago

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

Powered by DW Question & Answer Pro