Archived topic
Reserve space for ads in header or Post
25 replies · Started by vaibhav on July 14, 2021
Im not good at coding. so my question is where is hook element and how i can set priority one.
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
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 ?
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. :D
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.
No problem. Let us know how it goes. :D
If i will face any problem i will contact you.
Till then thanks for your help.
Hey my ad is not showing at center
Actually i added div clss align center for it but i want that just right side of logo.
Sorry for above messages. i just solved everything regarding cls and ads. Now everything working fine.
Thanks and regards.
Nice one. Glad you got it to work. :D
