[Resolved] Hooking Between Posts’ Entry-Content & Entry-Meta Containers

Home Forums Support [Resolved] Hooking Between Posts’ Entry-Content & Entry-Meta Containers

Home Forums Support Hooking Between Posts’ Entry-Content & Entry-Meta Containers

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1530528
    Paul

    I’m trying to hook a GB block in between posts’ entry-content container and <footer class="entry-meta"> like so:

    <div class="entry-content" itemprop="text">...</div>
    // GB block element here
    <footer class="entry-meta">...</footer>

    However, when I hook it to generate_after_entry_content, the block displays *after* the <footer class="entry-meta"> like so…

    <div class="entry-content" itemprop="text">...</div>
    <footer class="entry-meta">...</footer>
    // GB block element here

    …which is not the result one expects with this hook location.

    Unfortunately, there is no generate_before_footer_entry_meta or similar currently in GP hooks, so I’m not sure how I can go about getting the block hook placed where I need it to be. Any suggestions?

    #1530547
    Leo
    Staff
    Customer Support
    #1531274
    Paul

    Thanks Leo, that did the trick.

    #1531375
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.