Archived topic
Insert content after excerpts
17 replies · Started by oge on October 11, 2019
Hi
I have a news aggregation website and would like to place HTML formatted long-form content after the excerpts.
How do I achieve this?
Thanks
Hi there,
The after_entry_content hook should work.
https://docs.generatepress.com/article/hooks-visual-guide/#posts-page
We just need to make the priority higher than the footer meta.
Let me know if this helps :)
Hi
I do not see an "after_entry_content" under the list of hooks.
I see after_content, after_main_content & after_primary_content_area
I have the content in a word document. How do I format it, i.e. headings, sub-headings, etc.
Thank You!
Sorry that hook needs to be added as a custom hook for now:
https://generatepress.com/forums/topic/change-position-meta-data-on-single-posts/#post-950778
It will be added to the list in the next version :)
Hi
That hook just placed my test content "test test test" under every excerpt on the homepage.
Thanks
That's what the hook is supposed to do.
Maybe I'm a bit confused. What is the desired result?
I would like to put one long-form content after the pagination on the homepage.
Then the after_main_content hook should be the correct place.
What issues are you having?
I have the content in a word doc, what is the best way to place the content with all the formatting?
Thanks
Maybe a conversion tool like this?
https://word2cleanhtml.com/
https://wordtohtml.net/
I've never used them before.
Thanks a lot for your help.
No problem :)
Hi
The colour for the homepage body text is black, is there a way I can change the colour of the "after_main_content" hook text?
Thanks
All the content has inline style added currently:
https://www.screencast.com/t/PZ1e8RQD
You will need to change that one by one, or remove all the inline style so we can target them with some CSS.
I have removed the inline styles.
Please give me CSS code that changes the text colour to white and centres the text.
Thank You!