[Support request] How to Create a new Theme Sidebar (below featured image and before post content

Home Forums Support [Support request] How to Create a new Theme Sidebar (below featured image and before post content

Home Forums Support How to Create a new Theme Sidebar (below featured image and before post content

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #759923
    choosefi

    location of desired  new theme sidebar

    I would like to display a custom banner ad between my the featured image for my articles but before my post content. the current theme sidebars allow me to run a banner at the top and bottom of page and left and right but nothing more nuanced than that. is there a way to add a new theme sidebar in the specific location that I want

    #760005
    David
    Staff
    Customer Support

    Hi there,

    if you are just adding an advert script then no need to register a sidebar you can just add your script to one of the GP Hooks:

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

    The inside container hook should do the trick. This visual guide shows you the hook locations:

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

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