• truetoe

    (@truetoe)


    I have some code in my footer.php file that I only want activated on the home page. I am using a static front page, and the site is: https://stage.youth-spark.org/ The code I want activated only on the home page is:

    <?php
    				$display_brands_widget = false;
    				if (isset($qode_options_flat['footer_brands_area'])){
    					if ($qode_options_flat['footer_brands_area'] == "yes")  $display_brands_widget = true;
    				}
    				if($display_brands_widget): ?>
    					<div class="carousel_slider_holder clearfix">
    						<ul class="carousel_slider">
    							<?php dynamic_sidebar( 'brands' ); ?>
    						</ul>
    					</div>
    				<?php endif; ?>

    I’m a total newbie at php, but have tried (what feels like) a dozen or so solutions from various sites, and nothing has worked. Any help is appreciated!

  • The topic ‘Cannot get is_front_page to work’ is closed to new replies.