Archived topic
Adding sentence after Entry Content
7 replies · Started by manaadiar on January 12, 2020
Hi there, I want to be show below code at the end of the article as shown here..
<p style="text-align: center; display: block; color: #fff; background: #000;">*** End of Article ***</p>

Can you advise where in the single.php I can add this or can you give me an option for a hook..
Hi there,
The after_content hook in the single post should work:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
https://docs.generatepress.com/article/hooks-element-overview/
Hi Leo, i did try the after_content hook.. While it is showing the sentence *** END OF ARTICLE ***, it is not showing in the right place..
I want it to show here
https://shippingandfreightresource.com/wp-content/uploads/2020/01/EOA-should-be-here.png
But it is showing here
https://shippingandfreightresource.com/wp-content/uploads/2020/01/EOA-is-here.png
Pls let me know where to adjust it..
How are you adding the related posts?
Related Posts is a Jetpack plugin.. I need the sentence after the last page of the content before the "Share this" area..
Can you try changing the priority to 2 with after_content hook and see if that works?
If not you will need to check with JetPack's support to see if you can add the related posts option using a shortcode or functions so we can order them in the way you want.
Hi Leo, it didn't work, but is sorted it with a code in the functions.php..
Sounds good :)