Skip to content
Public Ticket #21190

Disable "Google Adsense Code to Display Below Header" only on Homepage

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

Please select "After HTML Element", then enter the ".site-header-wrapper" to the CSS selector.

Regards,
PenciDesign.


vasiledale1978 replied

Customer Reply

I tried but, there is no position like in your theme "Below Header". What should I choose? Before html element? I have attached an image with the options.

PenciDesign Supporter replied

Staff Reply

Hi,

Following your request, please install & use the Ad Insert plugin here: https://wordpress.org/plugins/ad-inserter/

You can insert the custom ads code to any position of any page you want.

Regards,
PenciDesign.


vasiledale1978 replied

Customer Reply

Hi,

I want to show that banner for the entire website minus homepage!  Is it possible to delete some code, maybe from source files?

PenciDesign Supporter replied

Staff Reply

Hi,

This option will display the ad code for the entire site. If you want to show the ads on the homepage only, please edit your homepage with the WPBakery Page Builder plugin.

You can read the document detail here: http://pennews.pencidesign.com/pennews-document/#homepage

Regards,
PenciDesign.


vasiledale1978 started the conversation

Conversation Start

Hello, 

I have enabled from "General Options" the Adsense code to be displaed below Header but i would like on Homepage not to be displayed at all. 

How can I do that?
Thank you

Want to join this conversation or access attachments? Sign in first.