Site logo

[Resolved] Reserve space for ads in header or Post

Home Forums Support [Resolved] Reserve space for ads in header or Post

Home Forums Support Reserve space for ads in header or Post

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #1857564
    vaibhav

    Im not good at coding. so my question is where is hook element and how i can set priority one.

    #1857573
    Elvin
    Staff
    Customer Support

    Hook elements can be created on Appearance > Elements.

    More about Hook Elements here – https://docs.generatepress.com/article/hooks-element-overview/

    The priority and the hook is on the settings https://docs.generatepress.com/article/hooks-element-overview/#settings

    The code area is where you put the

    for your ads.
    #1857580
    vaibhav

    K i created hook element.

    Suppose if i want place ad as shown in screenshot then i need to place script wrap code with AdSense code in hook element section instead of my site header. Also i need to put CSS in theme customization to reserve space for ad.

    Is it right ?

    #1857582
    Elvin
    Staff
    Customer Support

    K i created hook element.

    Suppose if i want place ad as shown in screenshot then i need to place script wrap code with AdSense code in hook element section instead of my site header. Also i need to put CSS in theme customization to reserve space for ad.

    Is it right ?

    Yes that’s correct. And David’s CSS basically does that assuming you’re using the correct CSS class for the ad’s div wrapper element. It reserves a space of 300px as indicated on the min-height. 😀

    #1857585
    vaibhav

    K thanks. Don’t worry i have “David’s code”( If i can add smiley here like you added).

    Thanks a lot. I will do it correctly.

    #1857598
    Elvin
    Staff
    Customer Support

    No problem. Let us know how it goes. 😀

    #1857612
    vaibhav

    If i will face any problem i will contact you.

    Till then thanks for your help.

    #1858964
    vaibhav

    Hey my ad is not showing at center

    #1858967
    vaibhav

    Actually i added div clss align center for it but i want that just right side of logo.

    #1859185
    vaibhav

    Sorry for above messages. i just solved everything regarding cls and ads. Now everything working fine.

    Thanks and regards.

    #1860491
    Elvin
    Staff
    Customer Support

    Nice one. Glad you got it to work. 😀

Viewing 11 posts - 16 through 26 (of 26 total)
  • You must be logged in to reply to this topic.