Archived topic
adding a hook in entry-meta
22 replies · Started by Kemo on December 7, 2018
Hey Tom
The comments are added, but the | and the comments icon are missing.
You can check yourself. I provided the URL in my other support ticket here:
https://generatepress.com/forums/topic/display-modified-date-instead-of-published-date/
Sorry about that, I just made a change to the code so it should work: https://generatepress.com/forums/topic/adding-a-hook-in-entry-meta/#post-767891
You'll need to add Font Awesome to your site for the icon to work.
Thx, that's awesome! Maybe add it to docs.
Looking forward to the other ticket :)
Glad I could help :)
Hi all!
I would like to ask you how to add bellow "by author" another line with short text with an affiliate link disclosure.
And also where exactly i should add the codes i already saw in this discussion.
Thanks for your help!
Peter
Hi there,
The code in this topic can be added using one of these methods: https://docs.generatepress.com/article/adding-php/
To add something after the post meta, you can use the generate_after_entry_title hook with a priority greater than 10. Check out our Hook Element for more info on that: https://docs.generatepress.com/article/hooks-element-overview/
It works for me!
Thank you so much for your help Tom!
Cheers!
You're welcome :)