Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove site-inner markup on front page
Tagged: site-inner front-page
- This topic has 7 replies, 4 voices, and was last updated 8 years, 6 months ago by
carasmo.
-
AuthorPosts
-
September 27, 2017 at 10:02 am #211928
P1SMH
MemberI 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 #211934sangfroidweb
ParticipantEverything 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 #211935P1SMH
MemberI 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 #211937sangfroidweb
ParticipantI'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 #211939P1SMH
MemberI 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 #212484MooseintheUK
MemberDid 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 #212489P1SMH
MemberUnfortunately, no.
October 13, 2017 at 2:47 pm #212493carasmo
ParticipantYes, there is a better way to remove all markup. It's this:
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();
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.