• 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 site-inner markup on front 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 site-inner markup on front page

This topic is: not resolved

Tagged: site-inner front-page

  • This topic has 7 replies, 4 voices, and was last updated 7 years, 9 months ago by carasmo.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 27, 2017 at 10:02 am #211928
    P1SMH
    Member

    I am using this code to remove the site-inner markup:

    add_filter( 'genesis_markup_site-inner', '__return_null' );
    add_filter( 'genesis_markup_content-sidebar-wrap_output', '__return_false' );
    add_filter( 'genesis_markup_content', '__return_null' );

    But it still leaves:

    <div class="content-sidebar-wrap"></div>

    Is there a better way to remove all markup?

    September 27, 2017 at 1:30 pm #211934
    sangfroidweb
    Participant

    Everything looks good to me. I'm not sure if it would make a difference but have you tried adding a late priority.. like:

    add_filter( 'genesis_markup_content-sidebar-wrap_output', '__return_false', 99 );


    Liz or Eddy @SangFroid Web — Customizing StudioPress themes at http://www.wpstudioworks.com and building custom Genesis Child themes for businesses at http://www.sangfroidwebdesign.com 🙂

    September 27, 2017 at 2:01 pm #211935
    P1SMH
    Member

    I just did but it didn't make any difference. I'm using the Digital Pro theme, but it happens on other themes too.

    September 27, 2017 at 2:42 pm #211937
    sangfroidweb
    Participant

    I'm looking at the code and I don't really follow the flow of it clearly for your case, however did you consider using the "short circuit" version of the filter instead of the output version? The The genesis_markup function runs that filter pretty much right out of the gate, and a false should prevent the return of anything:

    //* Short circuit filter
    $pre = apply_filters( "genesis_markup_{$args['context']}", false, $args );
    if ( false !== $pre )
    return $pre;

    So maybe try:
    add_filter( 'genesis_markup_content-sidebar-wrap', '__return_false' );


    Liz or Eddy @SangFroid Web — Customizing StudioPress themes at http://www.wpstudioworks.com and building custom Genesis Child themes for businesses at http://www.sangfroidwebdesign.com 🙂

    September 27, 2017 at 3:27 pm #211939
    P1SMH
    Member

    I thank you for your suggestions, but nothing is working. It's not a big deal, but would like to know for the future.

    October 13, 2017 at 4:32 am #212484
    MooseintheUK
    Member

    Did anyone figure out this issue yet, im having the exact same problem, only difference is im not using a studiopress theme for genesis, im building my own from scratch using genesis framework.

    October 13, 2017 at 12:11 pm #212489
    P1SMH
    Member

    Unfortunately, no.

    October 13, 2017 at 2:47 pm #212493
    carasmo
    Participant

    Yes, there is a better way to remove all markup. It's this:

    Full Width Landing Pages in Genesis

    Don't use genesis(); on the page.

    So make a template page front-page.php

    and on it create your function where the content is going to go or create a hook area.

    get_header();
    your_content();
    get_footer();

    Genesis Theme Customization and Help

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