What's New
- AuthorPosts
Hi guys,
In my store’s blog I have an article that seems to have positioned itself very well and receives many visits, but from countries to which I cannot send my products. I was wondering if there was a way to embed Google AdSense ads in a specific blog post.
From what I have tested, when trying to enter the ad code in the middle of the blog article, saving the changes causes the ad code to be modified.
I leave the details in the following private post.
Hi yobo!
Thanks but I already had those options as you indicate.
If I put the code inside an iframe, it is not modified on save, but AdSense does not allow iframes in its ads, so the ad is not working.Is there any other way to put the code as is without an iframe and not change just on save?
Thanks for your help!
Do you think that can be a great new feature in any next theme update to add the possibility to add Adsense code in the Advanced Custom Content module?
See the attached screen, the module already have the possibility regarding hooks, to add a custom code in the middle of the article blogs. The problem currently is what I mentioned before: AdSense script code breaks when adding it in the HTML field.
Thank you for evaluating it as a possible improvement.
Attachments:
Hi,
The Advanced custom content accepts special HTML code and iframe. please send me your backoffice access and the Adsense code, I will test it for you. if you can’t post the Adsense code on the topic, please contact us here: https://www.sunnytoo.com/contact, then send me the Adsense code via email.
Best regards.Hi,
Okay, I will take a look at it.
Best regards.Thanks yobo! I tried again because @jonny replied to the email and said that adsense code can be put using Advanced Custom Content, but I’m unable to. I just put the code and automatically when leaving the code window, it is changed and reduced.
Hi,
I tried to add that code in the “Head code”, that was loaded properly.
But there are a lot of JS error, that is from one of your Facebook modules, see attached screenshots.
Best regards.Please not try to put the Adsense code at head, that’s not what i need (I do not want ads in the entire shop).
Read again reply #88745 above, and see the capture, I need the Adsense code in a specific blog post.@jonny told me by email that this can be done using Advanced Custom Content, but the question is, how?
Thanks for your time guys!
Try addomg this code to the /js/admin/tinymce.inc.js file, see attached pic.
force_p_newlines : false, cleanup: false, forced_root_block : false, force_br_newlines : true, verify_html : false, apply_source_formatting : false,
Clearing browser cache is required to make the change take effect.
Attachments:
Try addomg this code to the /js/admin/tinymce.inc.js file, see attached pic.
force_p_newlines : false, cleanup: false, forced_root_block : false, force_br_newlines : true, verify_html : false, apply_source_formatting : false,
Clearing browser cache is required to make the change take effect.
Hi Jonny,
Thank you, this seems to be working, at least the AD is loading well.
However the code continues to be slightly modified, I don’t know if that will affect anything. Look at the attached screenshot, hardly anything is modified, but a little.Best regards!
Attachments:
Hi,
I modified the /modules/steasycontent/views/templates/admin/_configure/helpers/form/form.tpl file, you can add AdSense code to the Advanced custom content module.
Best regards.Hi yobo. As I updated my store to last Transformer version and PS version I lost the changes you did to that file (see your quoted reply), so mi ADS are not wotking. It’s possible to tell me the modifications you did so I will keep them to do them myself when I update the theme next time?
Will be nice if you can add that modifications to next Transformer update, I think a lot of people might be interested in monetizing their blogs with Google Ads.
Thank you!
- AuthorPosts
You must be logged in to reply to this topic.