Archived topic
Hooking Between Posts' Entry-Content & Entry-Meta Containers
3 replies · Started by Paul on November 13, 2020
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?
Thanks Leo, that did the trick.
No problem :)