<aside id="sidebar" role="complementary" <?php Avada()->layout->add_class( 'sidebar_1_class' ); ?> <?php Avada()->layout->add_style( 'sidebar_1_style' ); ?> <?php Avada()->layout->add_data( 'sidebar_1_data' ); ?>>
<?php
if (in_category(70)) {
+ echo "<br>in cat 70";
if (is_single() ) {
- echo "Here goes the sidebar for single epicenter posts";
+ echo "<br>(single) Here goes the sidebar for single epicenter posts";
if ( is_active_sidebar( 'avada-custom-sidebar-epicentersidebar' ) ) {
dynamic_sidebar( 'avada-custom-sidebar-epicentersidebar' );
} else {
- echo "avada-custom-sidebar-epicentersidebar is not active";
+ echo "<br>avada-custom-sidebar-epicentersidebar is not active";
}
}
if (is_home()) {
- echo "In cat 70 but also in home..";
+ echo "<br>In cat 70 but also in home..";
}
} else if (is_page(12465)) {
- echo "Now we're on page 12465, Epicenter news";
+ echo "<br>Now we're on page 12465, Epicenter news";
function modify_widget() {
$r = array( 'cat' => '-70');
return $r;
}
add_filter('widget_posts_args','modify_widget');
} else {
+ echo "<br>Not in cat 70 ";
if (is_home()) {
- echo "Do stuff when is_home()";
+ echo "<br>Do stuff when is_home()";
} else {
- echo "Not in cat 70 nor is_home";
+ echo "<br>Not is_home";
}
$sticky_sidebar = in_array( 'fusion-sticky-sidebar', apply_filters( 'fusion_sidebar_1_class', array() ) );
?>