Site logo

[Resolved] Definition of Block Element

Home Forums Support [Resolved] Definition of Block Element

Home Forums Support Definition of Block Element

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1488306
    Ernst Wilhelm

    I’d like to put a separator between the body/text of a blog post and post metadata like tags, categories. Hence I like the generatepress block elements a lot, I am trying to create one for this purpose. But I am struggeling to find the right hook. Can you povide some guidance?

    #1488348
    David
    Staff
    Customer Support

    Hi there,

    maybe the after_entry_header hook is what you need.
    You can see all the main template hooks here:

    https://docs.generatepress.com/article/hooks-visual-guide/#single-post

    #1488879
    Ernst Wilhelm

    David. Many thanks. If I read and understand the documentation correct, there is no hook which allows me to locate the sepatator exactly before any tag. Thats okay.

    Thanks, Ernst Wilhelm

    #1489009
    Leo
    Staff
    Customer Support

    Are you referring to this spot here?
    https://www.screencast.com/t/JcG2WiFwdS

    If so the generate_after_content hook with priority 2 should work 🙂

    #1563567
    Ernst Wilhelm

    Hi. Long time not answered. My apologies for that.

    With respect to this screenshot https://www.screencast.com/t/JcG2WiFwdS there is a little bit confusion. What I want is the location of the green rectangle. The settings generate_after_content hook with priority 2 are pointing to the location of the explanatory text with orange background color. Not exactly the same 🙁

    #1564244
    Leo
    Staff
    Customer Support

    Sorry – try generate_after_entry_content with priority 2 instead.

    #1564304
    Ernst Wilhelm

    Thanks Leo. That’s it.

    #1564320
    Leo
    Staff
    Customer Support

    No problem 🙂

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