• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Display above footer cta widget only on home page Breakthrough Pro

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Display above footer cta widget only on home page Breakthrough Pro

This topic is: resolved
  • This topic has 2 replies, 3 voices, and was last updated 7 years, 7 months ago by Sher.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 26, 2019 at 3:10 am #489723
    iondoaga
    Participant

    Hello,

    Is there a way to display the above footer CTA widget only on the homepage and remove it from all other pages on the website?

    I want the CTA widget to be displayed only on this page - https://goseomedia.com/

    https://goseomedia.com/
    February 26, 2019 at 6:24 am #489724
    Victor Font
    Moderator

    Look for this code in functions.php:

    function breakthrough_above_footer_cta() {
    
    	$footer_cta_image = get_theme_mod( 'breakthrough_footer_image', breakthrough_get_default_page_footer_image() );
    
    	genesis_widget_area(
    		'above-footer-cta', array(
    			'before' => '<div id="above-footer-cta" class="above-footer-cta"><div class="flexible-widgets widget-area' . breakthrough_widget_area_class( 'above-footer-cta' ) . '"><div class="wrap">',
    			'after'  => '</div></div></div>',
    		)
    	);
    
    	if ( $footer_cta_image ) {
    		$image_id  = attachment_url_to_postid( $footer_cta_image );
    		$image_alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
    		echo '<div class="full-width-image footer-cta-image"><img src="' . $footer_cta_image . '" alt="' . $image_alt . '" /></div>';
    	}
    
    }

    Modify the code so it immediately returns if it's not the home page:

    function breakthrough_above_footer_cta() {
    	if !( is_front_page() || is_home() ) {
    		return;
    	}
    
    	$footer_cta_image = get_theme_mod( 'breakthrough_footer_image', breakthrough_get_default_page_footer_image() );
    
    	genesis_widget_area(
    		'above-footer-cta', array(
    			'before' => '<div id="above-footer-cta" class="above-footer-cta"><div class="flexible-widgets widget-area' . breakthrough_widget_area_class( 'above-footer-cta' ) . '"><div class="wrap">',
    			'after'  => '</div></div></div>',
    		)
    	);
    
    	if ( $footer_cta_image ) {
    		$image_id  = attachment_url_to_postid( $footer_cta_image );
    		$image_alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
    		echo '<div class="full-width-image footer-cta-image"><img src="' . $footer_cta_image . '" alt="' . $image_alt . '" /></div>';
    	}
    
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 11, 2019 at 1:03 pm #490615
    Sher
    Participant

    In case it helps anyone... this php code change didn't work for me, but I was able to hide the footer CTA on a single page by making this CSS change:

    .page-id-83 #above-footer-cta.above-footer-cta {
    display: none;
    }

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Display above footer cta widget only on home page Breakthrough Pro’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble