Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #292993

    Gms
    Participant

    With cornerstone I can’t make google adsense ads show up. I tried with Raw Content and with Text elements, both with and without <div></div> tags.

    With Visual Composer google adsense ads works fine with Raw HTLML, Raw JavaScript and with Text elements.

    So its Cornerstone bug. Please fix it.

    Also, consider at Image element when we select the picture in src box (when we have one) not remove it but show us the Media Library with the picture selected (so we can know what is the name of the selected picture). You can put an X button to erase the picture ofc. If VC worked like this we will never recreate our pages with cornerstone…

    #293747

    Alexander
    Keymaster

    Hi Basilis,

    Can you describe the behavior? What happens when you try to add the code? Also, does it work on the front end after you save? It may just be an issue with the preview area.

    #293909

    Gms
    Participant

    I enter the code with cornerstone and I save. At cornerstone window usually I don’t see the ad. Just blank and I can’t select the Raw Content element. When I exit the cornerstone and re-open the page with cornerstone sometimes I see the ad sometimes I don’t. But the ad never appears at the front end (the published page).

    Whith VC all works fine. I see the ads with preview and at published pages.

    I tried also in a clean wordpress subdomain of mine with no other plugins with same results. Cornerstone don’t shows the ads and VC works fine.

    Thanks

    #293918

    Gms
    Participant
    This reply has been marked as private.
    #294604

    Rue Nel
    Moderator

    Hello There,

    We have check your Google Adsense code and it looks like you have inserted an invalid code into the raw content element. We tried to validated your code and the GA code should look like this:

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!– Home_Top_728x90 –>
    <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-4083190999348920" data-ad-slot="1598222292"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    And this is the result inside a raw content element: http://prntscr.com/7dzvns

    Please let us know if this works out for you.

    #295200

    Gms
    Participant

    Well, I send you wrong adsense code cause I copied it from wordpress editor (i use this ad also at a wordpress header and I copied from Apperance -> Editor -> Header). So this code was wrong. Sorry…
    (copied from here: http://prntscr.com/7eaouk)

    But with raw content element I always copy the code directly from adsense Get Code and its right. I checked it.
    What I see is that adsense code with raw content element is working with posts but not with pages. In fact there is also a bug with posts at my site:

    If I have more than one post I see: http://prntscr.com/7eaqa9
    When I click the post and go to its page I see the ad: http://prntscr.com/7easeh
    I also see it the preview inside cornerstone.

    With pages:
    Inside Cornerstone I see the ad: http://prntscr.com/7eaxdr
    At preview and at live I don’t see the ad: http://prntscr.com/7eay6y

    Thanks for your time and please check if you see the same problems

    Thanks

    #295484

    Christian
    Moderator

    Hey there,

    Your issue is related to this https://community.theme.co//forums/topic/plugin-shortcode-disappeared/

    Since your ad has a class, please try adding this code in the page’s Custom CSS

    .adsense-center {
    min-height: 50px;
    }

    Let us know how it goes.

    Thanks.

    #295987

    Gms
    Participant

    The min-height helps to select the Raw Content element but not for showing the ad. After a lot of tries I found that sometimes the Raw Content Element or the Text Elements creates wrong code or saves the code wrong.

    When I don’t see the ad at the front end I checked the source code of the page with Ctrl+U and I found that there is tag closing problems. It opens the <ins> tag and puts inside it the <br/> tag. It looks like the <ins> tag closes with the first <br />. So missed the rest text and can’t render correct. Firefox source code editor marks this with red color cause detect it.

    The problem with the source code: http://prntscr.com/7ellnm
    Nopepad++ also thinks the tag closes at the first <br /> : http://prntscr.com/7elpsx

    At some cases the front end shows the ad because it not saves it with the <br /> tag.

    Thanks

    #296537

    Christian
    Moderator

    Glad you’ve figured it out. πŸ™‚

    #298665

    ericgaydos
    Participant

    Hey Themeco Team & other readers!

    If anyone else out there is having this issue…I came here looking for a fix, and I think the phantom <br> tags may have something to do with the way our clipboards copy the “Get Code” from Ad Sense. After pasting my ad code into a Raw Content block, I just deleted the extra spaces in between the attributes where GMS was seeing the </br> tag. I think Google may be presenting the code with a line break for readability’s sake, but after pasting, those innocent line breaks are showing up as a </br> to Cornerstone.

    Seems to have worked for me after 10 or so trials. Give it a shot?

    #299282

    Nico
    Moderator

    Hi There,

    Thanks for sharing us tip.

    Have a great day! πŸ™‚

    #716143

    brandse
    Participant

    Hi @ all!

    I have exactly the same problem.
    Adsense content isn’t shown when using Cornerstone with Raw Content.
    Is this already fixed?

    Thanks a lot !

    #716491

    Rad
    Moderator

    Hi there,

    I don’t see any problem on my end, I checked it three times on different installation. I can’t replicate the issue with unclosed elements.

    Maybe it’s related on how it is setup, would you mind providing your site’s URL that has this ads and your admin login credentials in private reply?

    Thanks.

    #861410

    lebweb
    Participant
    This reply has been marked as private.
    #862036

    Rue Nel
    Moderator

    Hey @lebweb,

    Thanks for updating this thread! Can you confirm that you are fully updated? (Theme and Plugins)

    Our latest versions are:
    X Theme: 4.4.1
    Cornerstone: 1.2.2

    You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site.

    If you find anything to be out of date, you can review our update guide.

    Please get back to use once everything is updated.