Implementing Google Ad Manager

Posted in: Newspaper
Post count: 127

We would like to implement Google Ad Manager on our Newspaper theme and would like to know the best practices we should take to ensure we do not impact the site’s speeds and displays our ads as needed. We may need to add some PHP code to accomplish this. If we do need to ad some PHP what is the recommended solution to do so? Thank you in advance for your assistance.

Post count: 27744

Hello,

In our theme, you can add ads in Theme Panel -> ADS => https://i.imgur.com/6XgH1Xx.png and after that you can set the ads from the theme panel on your pages, using the element ad box => https://i.imgur.com/X8T9WJI.png
Also, you can find more information in this article
https://forum.tagdiv.com/ads-adsense-overview/
and for ads in posts https://forum.tagdiv.com/article-ads/

Thank you!

Post count: 127

Thank you for sharing. Would like to know if we have to add PHP code to the header file what does your team recommend.

Post count: 27744

Hello,

Our theme has more headers. When tagDiv Composer is not activate the theme will use the files from this path -> wp-content/themes/Newspaper/header.php when the plugin is enabled and you also use tagDiv Standard pack with a standard header it will be using this path -> wp-content/plugins/td-standard-pack/Newspaper/header.php and if you are using a cloud header it will be using the file from this path wp-content/plugins/td-composer/legacy/Newspaper/header.php
Please note that any change you make in the theme files after the update will be overwritten and you have to make the changes again. Better save the code somewhere and then apply it again after every update.

Thank you!

Post count: 127

Thank you for the response. We are using the Newspaper Theme with the Standard Plugin Active and we are using the Cloud Header for our pages. With that said, want to double check. If we need to add some custom PHP to the header we should be using the header.php file located in wp-content/plugins/td-composer/legacy/Newspaper/header.php. Is this correct?

Also, with the above mentioned. Are we able to copy the header.php file to our child theme? Will the header.php file in our child theme work as required?

Please advise.

Post count: 127

A simpler way to describe this question. Are we able to use a Child Theme workflow to edit the header.php file located –> wp-content/plugins/td-composer/legacy/Newspaper/header.php. Will this cause any issues when we apply future updates? Thank you again.

Post count: 27744

Hello,

if you copy that file to the child theme it should work fine.
also, the updated theme will not affect the changes made in the child theme.

Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.