Add check for is_home on epicenter blog sidebar
authorLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 17:54:43 +0000 (13:54 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 17:54:43 +0000 (13:54 -0400)
templates/sidebar-1.php

index 61649ac..2529151 100644 (file)
@@ -25,13 +25,15 @@ if (in_category(70)) {
                        } else {
                                        echo "avada-custom-sidebar-epicentersidebar is not active";
                        } ?>
-
+       }
        <?php
-       } else if (is_home()) {
+       if (is_home()) {
                echo "Do stuff when is_home()";
        }
 } else {
-
+       if (is_home()) {
+               echo "Do stuff when is_home()";
+       }
        $sticky_sidebar = in_array( 'fusion-sticky-sidebar', apply_filters( 'fusion_sidebar_1_class', array() ) );
        ?>
                <?php if ( $sticky_sidebar ) : ?>