• 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

Alessandra

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • June 28, 2014 at 7:23 pm in reply to: Removing Genesis Entry Content Open & Close Markup #111909
    Alessandra
    Member

    ...isn't it possible?

    =/

    December 2, 2013 at 8:09 am in reply to: How to use shortcodes inside theme functions #76588
    Alessandra
    Member

    Thanks, Brad! it helped me a lot!

    October 19, 2013 at 5:48 am in reply to: Wrap Primary & Secondary Menu Links with span tag #67619
    Alessandra
    Member

    Its not for style purpose.

    I want to include itemprop="name" to the schema NavigationElement markup.

    =/

    October 3, 2013 at 7:39 pm in reply to: Wrap Primary & Secondary Menu Links with span tag #65298
    Alessandra
    Member

    no one? =(

    August 12, 2013 at 9:38 am in reply to: Change the h4 tag from footer widgets to h5 #55794
    Alessandra
    Member

    Here you are: http://passagensar.com.br/

    Thanks!

    August 1, 2013 at 9:00 pm in reply to: Difficulty Removing footer markup conditionally #53669
    Alessandra
    Member

    Thanks a lot, Brad!

    It worked!

    I'm a self taught on all this stuff and all i can do is through trial and error...

    I was not sure if the add_action( 'genesis_before', 'function_name_here' ); should be include in my case, thats why i had not used it before.

    But now it seems to be working just as i wished.

    And your help was vital to this.

    So thanks again, man! =)

    July 31, 2013 at 9:55 pm in reply to: Difficulty Removing footer markup conditionally #53493
    Alessandra
    Member

    Brad, as i said before: we are talking about different footers.

    The footer your code removes is this one:

    <footer class="site-footer" role="contentinfo" itemscope="itemscope" itemtype="http://schema.org/WPFooter"><div class="wrap"><p>Footer Content Goes Here Baby</p></div></footer></div>

    Its the last footer of the page.

    The footer i am referring to is the footer that comes right after the <div class="entry-content" itempro="tet">...</div>
    Its the footer of the post / page content, not the footer of the page.

    As i said, its this footer right here the one i want to remove the open and close tags only on single posts and pages.

    <footer class="entry-footer">...</footer>

    Your code works, but the one that controls the markup i want to get rid is this one:

    //* Remove the entry footer markup (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );

    If i use it as default, it removes the markup on single posts and pages, but also on my home page, categories and so on...

    I tried to adapt the code to this:

    function remove_only_single_page() {
    if ( is_single() || is_page( ) ) {
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
    }}

    But it continues to output the footer markup in this case and only works with the default version... =/

    What i need is a way to make it work only on posts and pages.

    Maybe now you got my point.

    Could you or someone else please give me some help on how to adapt this code to work as i need it to?

    Thank you.

    July 31, 2013 at 9:14 pm in reply to: Difficulty Removing footer markup conditionally #53487
    Alessandra
    Member

    I will try your code again right now, Brad.

    But the last time i used it as it is, and i can see it is setting the conditional to the home page, but checking my source code with the code inside my function.php i still had the markup on each post excerpt inside my home page and in itself.

    I am using the html5 support, should it work with it or maybe your code is not compatible with it?

    Maybe its me doing some foolish thing.

    Unfortunately theres no link, because i'm doing it on my localhost, inside my computer.

    I appreciate you help so much.

    Will repport here what i get from this.

    Thanks a lot!

    July 31, 2013 at 9:41 am in reply to: Difficulty Removing footer markup conditionally #53399
    Alessandra
    Member

    The footer i mean is this:

    <footer class="entry-footer"></footer>

    And as i said before, this is the code that is said to get rid of these markups:

    //* Remove the entry footer markup (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );

    Using the above piece of code inside my functions removes this tags as i want. But it removes site-wide.

    I would like to have a way to remove them only on single posts and pages, cause i am already putting them with another hook on them.

    I saved the code you provided inside my functions.php but it dont remove the markup i am referring here. It is still there with this code and i think it relates to another different thing and we are not talking about the same thing.

    The action that filters the footer i meant is genesis_entry_footer_markup_open ..._close

    Any other help on how to use it as i need, working only on single posts and pages?

    Best regards.

    July 30, 2013 at 11:34 pm in reply to: Difficulty Removing footer markup conditionally #53322
    Alessandra
    Member

    Hello, Brad.

    Tried your code but unfortunately i got no results...

    I guess it is a pre html5 code, no?

    I used some variations too, but also could not managed it to work as expected.

    Used the "stock" version also, and it seems to do nothing, on my home page the footer markup keep showing normally with the unchanged code you suggested.

    I can get away with the footer markup with:

    //* Remove the entry footer markup (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
    

    But then it removes the open and close tags globally, when i just want t remove them on single posts and pages.

    Any more suggestions please?

    July 27, 2013 at 6:01 pm in reply to: Some Help Hooking With New Genesis 2 Markup #52881
    Alessandra
    Member

    Thanks in abundance, Marcy!

    You're my Queen from now on! =}

    You made it work perfectly!

    I S2 You!

    July 26, 2013 at 10:55 pm in reply to: Some Help Hooking With New Genesis 2 Markup #52730
    Alessandra
    Member

    Thank you so much, Marcy!

    That worked like a charm!

    I just had to change the hook for posts because inside genesis_entry_footer i got the content also showing bellow the excerpts on the home page when i just want this content available bellow the post content inside itself.

    I used:

    add_action( 'genesis_before_comments', 'genesis_before_comments_custom' );
    function genesis_before_comments_custom() { if ( is_single() ) ?>
    
    <div>
    [CONTENT]
    </div>
    
    <?php
    }

    And tried to replicate it to also show this content on pages but with a slightly different content with this:

    add_action( 'genesis_after_endwhile', 'genesis_after_endwhile_custom' );
    function genesis_after_endwhile_custom() { if ( is_page() ) ?>
    
    <div>
    [CONTENT2]
    </div>
    
    <?php
    }
    

    But i got this last piece of content2 also showing on posts.... =/

    Am i doing something stupid?

    June 2, 2013 at 12:27 pm in reply to: >>PLEASE!: Genesis 2 New Hooks – How to Use?! #43638
    Alessandra
    Member

    could not get great results with those.... =/

     

    i miss that plugin so much... sniff... sniff

    May 30, 2013 at 6:53 pm in reply to: >>PLEASE!: Genesis 2 New Hooks – How to Use?! #43281
    Alessandra
    Member

    Hello, Brad!

     

    I know that. The plugin should be updated only after the final release of the Framework.

     

    Do you know how i can implement that through the new hooks based on the information i gave on my initial question?

    =/

     

    Thanks!

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)

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