-
AuthorPosts
-
June 4, 2015 at 7:33 pm #292993
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…
June 5, 2015 at 2:48 pm #293747Hi 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.
June 5, 2015 at 6:11 pm #293909I 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
June 5, 2015 at 6:26 pm #293918This reply has been marked as private.June 6, 2015 at 7:11 pm #294604Hello 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.
June 7, 2015 at 3:33 pm #295200Well, 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/7eay6yThanks for your time and please check if you see the same problems
Thanks
June 8, 2015 at 1:44 am #295484Hey 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.
June 8, 2015 at 11:41 am #295987The 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/7elpsxAt some cases the front end shows the ad because it not saves it with the <br /> tag.
Thanks
June 9, 2015 at 1:04 am #296537Glad you’ve figured it out. π
June 10, 2015 at 11:47 pm #298665Hey 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?
June 11, 2015 at 2:01 pm #299282Hi There,
Thanks for sharing us tip.
Have a great day! π
December 21, 2015 at 11:41 am #716143Hi @ 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 !
December 21, 2015 at 4:54 pm #716491Hi 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.
March 31, 2016 at 3:32 pm #861410This reply has been marked as private.April 1, 2016 at 12:09 am #862036Hey @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.2You 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.
-
AuthorPosts