• 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

Altitude Pro Adding Second Line to Header Menu / Footer Widget only on home page

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 › Altitude Pro Adding Second Line to Header Menu / Footer Widget only on home page

This topic is: not resolved

Tagged: adding menu, Altitude Po, footer widget, header menu, Remove Footer Widget from secondary pages, social media

  • This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by kathyosborne.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 10, 2017 at 9:38 am #212367
    kathyosborne
    Participant

    What is the best way to add a second line menu bar above the Header menu. I've circled in red where my client wants the social media icons to go:

    screen shot

    I tried making the secondary nav move above it via CSS but then it messed with the site-title.

    I thought about adding Utility bars but it doesn't nest into that area either.

    ****

    Second question:

    I want the footer widget to only show up on the home page and not any other pages. What code would I add to the functions.php page? It seems to vary from the one I was using but can't seem break down what the hook actions are.

    Thank you.

    October 11, 2017 at 9:35 am #212416
    kathyosborne
    Participant

    I've moved the site from local to online:

    http://www.staceyjaswad.com/newsite

    If that helps better than screen shots.
    Thanks!

    October 11, 2017 at 1:05 pm #212427
    tarmadillo
    Participant

    question 1
    here is one way it can be done:

    //* Register social icon header widget area
    genesis_register_sidebar( array(
    	'id'          => 'social',
    	'name'        => __( 'Social Icons', 'theme-name' ),
    	'description' => __( 'This is the header right section.', 'theme-name' ),
    ) );
    
    //* Hook social icon widget area before site navigation
    add_action( 'genesis_header', 'ta_social_header', 11 );
    function ta_social_header() {
    	genesis_widget_area( 'social', array(
    		'before' => '<div class="social-icons widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
    	) );
    }

    what it does is create a new widget area where you can add your social icons widget and hooks it before the site nav.

    you will have to do a bit of css to get it to fit right

    .social-icons {
        width: 50%;
        float: right;
        text-align: right;
    }

    that will get you started.

    question 2

    add_action( 'genesis_before_footer', 'ta_remove_footer_widgets', 4 );
    function ta_remove_footer_widgets() {
        if ( ! is_front_page() ) {
            remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas');
        }
    }

    that will remove footer widgets on all pages but front page.


    https://armadillowebdesign.com

    October 11, 2017 at 2:20 pm #212436
    kathyosborne
    Participant

    This is perfect! Thank you so much!!!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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