[Resolved] GP Hooks Problem

Home Forums Support [Resolved] GP Hooks Problem

Home Forums Support GP Hooks Problem

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #773398
    Rizki

    Hi there,

    When i want to add some codes ( like ads ) into this part http://prntscr.com/m371ms ( below featured image on single post ) which hook i can use ?

    #773452
    Leo
    Staff
    Customer Support

    Hi there,

    I think after_entry_header is what you are looking for.

    You can check here: https://docs.generatepress.com/article/hooks-visual-guide/

    #773650
    Rizki

    When i use after_entry_header the ads show above featured image, not below.

    #773993
    Leo
    Staff
    Customer Support

    Try changing the priority to 12.

    #774084
    Rizki

    Thanks, it works ๐Ÿ™‚ Btw how do priority features work? So far I have never used it.

    #774122
    Leo
    Staff
    Customer Support

    When there are multiple things added within a hook (in this case, the featured image and your ad), priority is used to change their order.

    Glad it’s working ๐Ÿ™‚

    #774839
    Rizki

    Hoo i see. Can I insert ad code in certain paragraphs by utilizing priority features ?

    #774905
    Leo
    Staff
    Customer Support

    That’s not possible as paragraphs are not added with hooks.

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