[Resolved] Insertion just before the generate_after_content placeholder

Home Forums Support [Resolved] Insertion just before the generate_after_content placeholder

Home Forums Support Insertion just before the generate_after_content placeholder

  • This topic has 5 replies, 2 voices, and was last updated 2 months ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2007556
    Martin

    Hello,

    I would like to insert a text at the end of the article positioned right after the last text of the post.

    The hook generate_after_content inserts this text after the author box and after the breadcrumbs, and while this is inside the “article”, I would like to have it above the author box and above the breadcrumbs just as if it is part of the text of the article.

    How can I do that placement through a hook or any other way, please?

    Kind regards, Martin

    #2007634
    David
    Staff
    Customer Support

    Hi there,

    how are the breadcrumbs and author box been added to the site ?

    #2007685
    Martin

    The author box is added through the Simple Author Box plugin. I do not mind to change it or replace it for a GeneratePress box if that exists.

    The breadcrumb is an example shown in your visual guide. I do not use breadcrumbs.

    Thank you, Martin

    #2007738
    David
    Staff
    Customer Support

    OK so first thing is to edit your hook and change the priority to 1
    This will position it above the themes post meta/breadcrumb,

    The author box – you can build one using a Block Element:

    https://docs.generatepress.com/article/block-element-overview/

    YT Video showing how:

    And this can be hooked in below the post meta using the same after_content hook.

    #2008584
    Martin

    Thank you David. I created the userbox and deactivated the original plugin, and I set the priorities so that the text is depicted in the article before the userbox as per my requirements.

    I used the video you pointed me at https://www.youtube.com/watch?v=HMhUo91RjsE.

    #2008955
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.