• 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

Remove Subnav from Focus Landing 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 › Remove Subnav from Focus Landing page

This topic is: not resolved

Tagged: focus, landing page, subnav

  • This topic has 2 replies, 2 voices, and was last updated 13 years, 2 months ago by tmstudiouser.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 21, 2013 at 4:08 pm #30292
    tmstudiouser
    Member

    http://www.lovequotes.com/facebook-submit/

    I need to remove the subnav from this landing page. The code looks as though it should work, but for some reason it's not. Any ideas? Thanks!

    <?php
    /**
    * This file adds the Landing template to the Focus Child Theme.
    *
    * @author StudioPress
    * @package Generate
    * @subpackage Customizations
    */

    /*
    Template Name: Landing
    */

    // Add custom body class to the head
    add_filter( 'body_class', 'focus_add_body_class' );
    function focus_add_body_class( $classes ) {
    $classes[] = 'focus-landing';
    return $classes;
    }

    // Remove header, navigation, breadcrumbs, footer widgets, footer
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    remove_action( 'genesis_before_header', 'genesis_do_nav' );
    remove_action( 'genesis_after_header', 'genesis_do_subnav', 15 );
    remove_action( 'genesis_after_header', 'genesis_do_breadcrumbs');
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );

    genesis();

    March 21, 2013 at 5:03 pm #30318
    Brian Bourn
    Member

    Unless you have changed the default code in you theme, it's probably due to this:

    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’, 15 );

    It should just be:

    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );

    Bourn Creative | bourncreative.com | Twitter

    April 9, 2013 at 6:31 pm #34417
    tmstudiouser
    Member

    Not sure why the 15 is there, but just removing it gave me an error.

    I studied the functions.php file and realized that it should be 'genesis_before_header'.

    Changed that, still didn't work until I removed the , 15.

    So a combination of these 2 helped me remove the sub nav from the landing page on 2 separate sites using the focus and balance themes.

    Here's the working code now.
    // Remove header, navigation, breadcrumbs, footer widgets, footer
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    remove_action( 'genesis_before_header', 'genesis_do_subnav' );
    remove_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );

    genesis();

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

© 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