Site logo

Archived topic

what is the hook to add content to footer inside the article div

8 replies · Started by webyogi on April 12, 2021

Viewing posts 1–9 of 9

what is the hook to add content to
<footer></footer>
inside the
<div class="inside-article"></div>

Hi there,

thats the Entry Meta footer for the post. There isn't a hook inside that. What are you wanting to add ?

I wanted to add social icons right after the content ends.

You can use the generate_after_content hook and increase the priority to 20

Tried:
generate_after_content with priority 20 and
generate_after_entry_content with priority 20

both didn't work.

I want to add the social icons like so:

<div class="entry-content"></div>
Social Icons via Hook here
<footer class="entry-meta"></footer>

I looked up Hooks Visual Guide for Single post and realized there is no hook right after the content and before the "previous and next" posts links get displayed. Unfortunately I want to push through content just before the "previous and next" post links are displayed, basically right after the post content ends.

https://docs.generatepress.com/wp-content/uploads/2018/07/hooks-singlepost.png

Then use the generate_after_content hook and change the priority to 5

The Footer Meta uses the same hook.

Not working ever after setting priority to 5 on the "generate_after_content" hook.

My code for displaying the social icons gets inserted AFTER the "previous/next" navigation links are generated in <footer></footer>.

Hi there,

Could you link us to the site with the hook activated?

We can see if we can offer a CSS solution for this.

Let me know :)

This archived topic is closed to new replies.