- This topic has 5 replies, 3 voices, and was last updated 9 years, 7 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I want to put Google AdSense section code like this <!-- google_ad_section_start --> before single post start and <!-- google_ad_section_end --> at the end of the single post.
This helps Google Adsense ad to target particular content area. I am not sure how to put these code in Child themes.
Please help how I can put AdSense section code in single post content area.
Following should help:
I am not looking for inserting AdSense code. I want to insert this code just before content area starts <!– google_ad_section_start –> and this code just after single post content area ends <!– google_ad_section_end –> .
These lines say Google AdSense bot to focus on particular area of site so it can show ads related to content within these code.
For this you can use Genesis simple hooks plugin. As such, this code addition is optional and is not required specially when using WordPress as post content is wrapped in content tags - which Google adsense code can easily understand.
© 2022 WPEngine, Inc.