[Resolved] Insert content after excerpts

Home Forums Support [Resolved] Insert content after excerpts

Home Forums Support Insert content after excerpts

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #1031811
    oge

    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

    #1032196
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1032232
    oge

    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!

    #1032253
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1032364
    oge

    Hi

    That hook just placed my test content “test test test” under every excerpt on the homepage.

    Thanks

    #1032365
    Leo
    Staff
    Customer Support

    That’s what the hook is supposed to do.

    Maybe I’m a bit confused. What is the desired result?

    #1032366
    oge

    I would like to put one long-form content after the pagination on the homepage.

    #1032367
    Leo
    Staff
    Customer Support

    Then the after_main_content hook should be the correct place.

    What issues are you having?

    #1032369
    oge

    I have the content in a word doc, what is the best way to place the content with all the formatting?

    Thanks

    #1032370
    Leo
    Staff
    Customer Support

    Maybe a conversion tool like this?
    https://word2cleanhtml.com/
    https://wordtohtml.net/

    I’ve never used them before.

    #1032381
    oge

    Thanks a lot for your help.

    #1032400
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1032854
    oge

    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

    #1032905
    Leo
    Staff
    Customer Support

    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.

    #1032921
    oge

    I have removed the inline styles.

    Please give me CSS code that changes the text colour to white and centres the text.

    Thank You!

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.