• 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

Outreach Pro – remove home page widgets

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 › Outreach Pro – remove home page widgets

This topic is: resolved

Tagged: Outreach Pro, sub footer widgets

  • This topic has 9 replies, 3 voices, and was last updated 8 years, 4 months ago by mikep.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • August 1, 2017 at 12:25 am #209802
    mikep
    Member

    I just installed outreach pro.

    I want to remove from just the home page the footer and subfooter widgets.

    How can I do this?

    Thanks!

    August 1, 2017 at 6:31 am #209815
    Victor Font
    Moderator

    WordPress Appearance/Widgets page. Delete the widgets from the respective widget areas.


    Regards,

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

    August 1, 2017 at 6:39 am #209818
    mikep
    Member

    Thanks Victor but the problem is that the Footer and Subfooter widgets are programmed into all of the pages. If I remove them they via widgets screen they disappear from all of the pages. I just want them removed from the homepage.

    August 1, 2017 at 8:18 am #209830
    Victor Font
    Moderator

    You'll have to edit front-page.php. Please post a link to your site.


    Regards,

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

    August 1, 2017 at 9:52 am #209835
    Brad Dalton
    Participant

    Add a conditional after the function name

    if ( is_front_page() )
        return;
    

    Like this


    Tutorials for StudioPress Themes.

    August 1, 2017 at 7:47 pm #209864
    mikep
    Member

    Brad,
    Thank you very much for your reply. Your solution works perfectly for eliminating the sub-footer on outreach pro. However the 4-column footer remains. A little further down the functions.php file I find this:

    //* Add support for 4-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 4 );
    

    The syntax is different than the subfooter syntax so I'm not sure how to make it work for the footer as well.

    August 2, 2017 at 12:57 am #209880
    Brad Dalton
    Participant

    Link to your site please.


    Tutorials for StudioPress Themes.

    August 2, 2017 at 9:51 am #209910
    mikep
    Member

    Brad,
    unfortunately the site isn't live so i can't publish a link to it here. Here is the entirety of the functions.php:

    <?php
    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );
    
    //* Setup Theme
    include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' );
    
    //* Set Localization (do not remove)
    load_child_theme_textdomain( 'outreach', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'outreach' ) );
    
    //* Child theme (do not remove)
    define( 'CHILD_THEME_NAME', __( 'Outreach Pro Theme', 'outreach' ) );
    define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/outreach/' );
    define( 'CHILD_THEME_VERSION', '3.1' );
    
    //* Add HTML5 markup structure
    add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );
    
    //* Add viewport meta tag for mobile browsers
    add_theme_support( 'genesis-responsive-viewport' );
    
    //* Enqueue Scripts
    add_action( 'wp_enqueue_scripts', 'outreach_load_scripts' );
    function outreach_load_scripts() {
    
    	wp_enqueue_script( 'outreach-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    	
    	wp_enqueue_style( 'dashicons' );
    	
    	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,700', array(), CHILD_THEME_VERSION );
    
    }
    
    //* Add new image sizes
    add_image_size( 'home-top', 1140, 460, TRUE );
    add_image_size( 'home-bottom', 285, 160, TRUE );
    add_image_size( 'sidebar', 300, 150, TRUE );
    
    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    	'header-selector' => '.site-title a',
    	'header-text'     => false,
    	'height'          => 100,
    	'width'           => 340,
    ) );
    
    //* Add support for custom background
    add_theme_support( 'custom-background' );
    
    //* Add support for additional color style options
    add_theme_support( 'genesis-style-selector', array(
    	'outreach-custom' 	=>	__( 'Outreach Custom', 'outreach' ),
    	'outreach-pro-blue' 	=>	__( 'Outreach Pro Blue', 'outreach' ),
    	'outreach-pro-orange' 	=> 	__( 'Outreach Pro Orange', 'outreach' ),
    	'outreach-pro-purple' 	=> 	__( 'Outreach Pro Purple', 'outreach' ),
    	'outreach-pro-red' 		=> 	__( 'Outreach Pro Red', 'outreach' ),
    ) );
    
    //* Add support for structural wraps
    add_theme_support( 'genesis-structural-wraps', array(
    	'header',
    	'nav',
    	'subnav',
    	'site-inner',
    	'footer-widgets',
    	'footer',
    ) );
    
    //* Modify the size of the Gravatar in the author box
    add_filter( 'genesis_author_box_gravatar_size', 'outreach_author_box_gravatar_size' );
    function outreach_author_box_gravatar_size( $size ) {
    
        return '80';
        
    }
    
    //* Remove comment form allowed tags
    add_filter( 'comment_form_defaults', 'outreach_remove_comment_form_allowed_tags' );
    function outreach_remove_comment_form_allowed_tags( $defaults ) {
    	
    	$defaults['comment_notes_after'] = '';
    	return $defaults;
    
    }
    
    //* Add the sub footer section
    add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 );
    function outreach_sub_footer() {
    
    if ( is_front_page() )
        return;
    
    	if ( is_active_sidebar( 'sub-footer-left' ) || is_active_sidebar( 'sub-footer-right' ) ) {
    		echo '<div class="sub-footer"><div class="wrap">';
    		
    		   genesis_widget_area( 'sub-footer-left', array(
    		       'before' => '<div class="sub-footer-left">',
    		       'after'  => '</div>',
    		   ) );
    	
    		   genesis_widget_area( 'sub-footer-right', array(
    		       'before' => '<div class="sub-footer-right">',
    		       'after'  => '</div>',
    		   ) );
    	
    		echo '</div><!-- end .wrap --></div><!-- end .sub-footer -->';	
    	}
    	
    }
    
    //* Add support for 4-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 4 );
    
    //* Add support for after entry widget
    add_theme_support( 'genesis-after-entry-widget-area' );
    
    //* Relocate after entry widget
    remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
    add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );
    
    //* Register widget areas
    genesis_register_sidebar( array(
    	'id'          => 'home-top',
    	'name'        => __( 'Home - Top', 'outreach' ),
    	'description' => __( 'This is the top section of the Home page.', 'outreach' ),
    ) );
    genesis_register_sidebar( array(
    	'id'          => 'home-bottom',
    	'name'        => __( 'Home - Bottom', 'outreach' ),
    	'description' => __( 'This is the bottom section of the Home page.', 'outreach' ),
    ) );
    genesis_register_sidebar( array(
    	'id'          => 'sub-footer-left',
    	'name'        => __( 'Sub Footer - Left', 'outreach' ),
    	'description' => __( 'This is the left section of the sub footer.', 'outreach' ),
    ) );
    genesis_register_sidebar( array(
    	'id'          => 'sub-footer-right',
    	'name'        => __( 'Sub Footer - Right', 'outreach' ),
    	'description' => __( 'This is the right section of the sub footer.', 'outreach' ),
    ) );
    
    //* Change the footer text
    add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
    function sp_footer_creds_filter( $creds ) {
    	$creds = '[footer_copyright] &middot; Company &middot;';
    	return $creds;
    }
    
    
    August 2, 2017 at 10:12 am #209911
    Brad Dalton
    Participant

    Try this


    Tutorials for StudioPress Themes.

    August 2, 2017 at 10:35 am #209913
    mikep
    Member

    Masterful! Thank you VERY MUCH!

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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