Genesis 2.0 Footer Hook Method Question

Community Forums Forums General Discussion Genesis 2.0 Footer Hook Method Question

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  alex2k5 1 year, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #64598

    alex2k5
    Participant
    Post count: 28

    Hey everyone,

    Working on converting my current custom theme built off 1.9 to an HTML5 Genesis 2.0 theme.

    Before, I had an extra div after the post-content for taxonomy. So, before we had…

    <div class=”entry hentry”>

    <div class=”entry-title”> </div>

    <div class=”post-info”> </div>

    <div class=”entry-content”> </div>

    <div class=”post-meta”> </div>

    **** Custom **** <div class=”post-taxonomy”> </div>

    </div> // end entry

    However, now we have….

    <article class=”entry”>

    <header class=”entry-header”>

    <h1 class=”entry-title”> </h1>

    <p class=”entry-meta”> </p>

    </header>

    <div class=”entry-content”> </div>

    <footer class=”entry-footer”>

    <p class=”entry-meta”> </p>

    </footer>

    </article>

    If I use the same hook method as before, using genesis_entry_footer – formerly genesis_after_post_content – My custom div/ p for taxonomy now shows after the new footer block.

    I’m assuming for HTML5, semantically, we’d like to keep any post-content data inside the footer.

    So, how would we go about adding another P tag, aka another row, inside footer, but after the normal p class=”entry-meta” paragraph.

    Desired result is:

    <footer class=”entry-footer”>

    <p class=”entry-meta”> </p>

    <p class=”entry-meta taxonomy”> MY STUFF HERE </p>

    </footer>

    Any help appreciated. Thanks!

    #64842

    alex2k5
    Participant
    Post count: 28

    Figured it out. Needed to alter the hook order to fire before the genesis_entry_footer_markup_close function, which is 15.

    add_action( 'genesis_entry_footer', 'post_taxonomy_filter', 14);

    That puts things inside the <footer></footer> block, after the default post-meta, but before </footer>.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.