Problem with adsense code

10 replies
  • WEB DESIGN
  • |
Hi

When I went to check on my adsense ads on my site, I noticed that the adsense code was showing, not the actual ads themselves. They had been shown in the past.

I have tried everything that I can think off but no joy.

Could anyone help me with this, please?

I have attached a screenshot of my homepage.

Many thanks,

Arny



#adsense #code #problem
  • Profile picture of the author RobinInTexas
    There's some strange stuff between the <head> and </head> portion of your site that may be interfering with the javascript that displays the ads.

    PHP Code:
    <meta name="twitter:description" content="Facts About Smoking

    (adsbygoogle = window.adsbygoogle || []).push({});

    We all know that smoking is bad for us, but do we really know the true facts abo(...)"
    >
    <
    meta name="DC.Title" content="Facts About Smoking" ><meta name="DC.Creator" content="" ><meta name="DC.Description" content="Facts About Smoking

    (adsbygoogle = window.adsbygoogle || []).push({}); 
    I didn't see any ad content at all on the page

    also the fragment
    PHP Code:
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><br /> 
    is broken, the http: is missing from the URL
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8770251].message }}
  • Profile picture of the author RobinInTexas
    Try using filezilla or the code editor in cpanel to edit the header.php

    It would be best to create a child theme if you are going to edit theme files. Child Themes « WordPress Codex
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8770412].message }}
    • Profile picture of the author arny660
      I have gone into FileZilla and this is all I am getting in the head tags:

      <head>
      <meta charset="<?php bloginfo( 'charset' ); ?>">
      <title><?php bloginfo( 'blogname' ); ?><?php wp_title(); ?></title>
      <link rel="stylesheet" media="all" href="<?php print get_stylesheet_uri(); ?>" />
      <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
      <link rel="profile" href="http://gmpg.org/xfn/11">
      <?php wp_head(); ?>
      </head>
      {{ DiscussionBoard.errors[8770431].message }}
      • Profile picture of the author wilkesvb
        What are the other php files included in your theme? Some themes separate the doctype as another php include rather than group it in with the header.php.
        {{ DiscussionBoard.errors[8770826].message }}
  • Profile picture of the author topnichewebsites
    Can you share your URL please
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8771263].message }}
  • Profile picture of the author RobinInTexas
    I would think you have a plugin inserting the code or the WP core file may have been modified
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8772521].message }}
  • Profile picture of the author Weblover50
    I don't see anything - code or ads - on the place shown on the screenshot. The ad lower below is working fine for me. Hope you have been able to fix it.
    Signature

    Hosting specials - Hostgator Review and Inmotion Coupon

    {{ DiscussionBoard.errors[8772641].message }}

Trending Topics