- This topic has 28 replies, 3 voices, and was last updated 8 months, 3 weeks ago by
David.
-
AuthorPosts
-
June 10, 2020 at 5:41 am #1321967
David
StaffCustomer SupportThere is still an adscript added to the
<head>
of your site.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 10, 2020 at 6:15 am #1322007Abdul
Hi, I have not added any code anywhere or enabled any other plugin related to Ads.can you please let me know where to check so that I can look into it.
I did not edit the theme source or any other files.June 10, 2020 at 7:01 am #1322063David
StaffCustomer SupportThose scripts can be added in the following ways:
1. Plugins
2. GP Hook Element
3. Child theme functions.php
4. Code Snippets plugin
5. Google Tag Manager ContainerYou will need to check each of those options.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 10, 2020 at 7:19 am #1322090Abdul
1. Plugins – No plugins related to Ads (Check the screenshot)
2. GP Hook Element – None (Check the screenshot)
3. Child theme functions.php – I did not do anything on this since I don’t know where it is π
4. Code Snippets plugin – None (Check the screenshot)
5. Google Tag Manager Container – I did not even register to this (check the screenshot)Screenshots of current settings
June 10, 2020 at 10:13 am #1322480Abdul
Hi, Any updates on this one. can you please let me know so that I can fix it and move on to the next task. π
June 10, 2020 at 10:17 am #1322489Tom
Lead DeveloperLead DeveloperCan you check the
header.php
file in “Appearance > Themes > Theme Editor”?Perhaps it was added to the template itself.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 10, 2020 at 10:28 am #1322505Abdul
Hi Tom
this is what I have in that file
<?php /** * The template for displaying the header. * * @package GeneratePress */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <link rel="profile" href="https://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?> <?php generate_do_microdata( 'body' ); ?>> <?php /** * wp_body_open hook. * * @since 2.3 */ do_action( 'wp_body_open' ); /** * generate_before_header hook. * * @since 0.1 * * @hooked generate_do_skip_to_content_link - 2 * @hooked generate_top_bar - 5 * @hooked generate_add_navigation_before_header - 5 */ do_action( 'generate_before_header' ); /** * generate_header hook. * * @since 1.3.42 * * @hooked generate_construct_header - 10 */ do_action( 'generate_header' ); /** * generate_after_header hook. * * @since 0.1 * * @hooked generate_featured_page_header - 10 */ do_action( 'generate_after_header' ); ?> <div id="page" class="hfeed site grid-container container grid-parent"> <?php /** * generate_inside_site_container hook. * * @since 2.4 */ do_action( 'generate_inside_site_container' ); ?> <div id="content" class="site-content"> <?php /** * generate_inside_container hook. * * @since 0.1 */ do_action( 'generate_inside_container' );
June 10, 2020 at 11:21 am #1322558Abdul
checked on the google forums and found out that the Site Kit has added the code (I think this is the reason) I have now removed it. now it says the below
AdSense Code
The AdSense code has not been placed on your sitecan you please check now and see if the code is removed and also guide me on how to add the Ads properly.
June 10, 2020 at 12:57 pm #1322651Abdul
Please let me know if i can manually add the code now by adding a New Element.
will that work ?
June 10, 2020 at 3:23 pm #1322771Tom
Lead DeveloperLead DeveloperYes, it should work as long as you only have one block of Adsense code on the site. You can use Elements to do so π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 11, 2020 at 4:56 am #1323412Abdul
Hi, I added the code through element manually but I am not seeing any Ads on my website. can you please check and let me know how to fix it.
June 11, 2020 at 7:44 am #1323634David
StaffCustomer SupportI can see the code is now correct on your site and there are no more errors.
Have you checked your adsense account and confirmed the code has been added?Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 11, 2020 at 7:47 am #1323640Abdul
Hi, Yes, I added the code using Elements and then enabled Auto Ads and getting 1 Ad on top of the homepage. I think it will take time to see Ads across the site. I will wait and see how it turns out. thanks for your help
June 11, 2020 at 8:09 am #1323833David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.