Keyword

How to get rid of adsense code when i share article on fb?

  • Marko Jovovic
  • Marko Jovovic's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #134825 by Marko Jovovic
Hello,
I have my sports news website running , and i use K2 for articles.
Recently i started with google adsense showing on my frontpage and articles.
The point is, when i share my article on facebook it shows the code in the description of link.
This is the code that is showing:
(adsbygoogle = window.adsbygoogle ||[]}.push ({});
and after that it gives the descrition of my link and image , thats everything fine, but i can't rid of this code that is always on the start of my link descritpion?
Anyone know is there any line i can add in k2adsense plugin or something like that ?
Thank you

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #134836 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to get rid of adsense code when i share article on fb?
How are you inserting this code?
You can directly paste in your overrides or use a module inside your item.php file

More about overrides can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Marko Jovovic
  • Marko Jovovic's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #134851 by Marko Jovovic
Every topic that I created here you answered me wrong and gave me no help.
I made Adsense component/k2 plugin and added a code.
I am telling you that when i share my facebook link that it shows the code and im asking you how to remove the code.
I will give you a screenshoot now, and if you can just tell me what to replave in view.html.php.
imgur.com/O2JOnUa

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #134864 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to get rid of adsense code when i share article on fb?
If you bothered to read my post you would have known that you need to edit another file. You can change the hook or use a module outside the item's fulltext.

Also how was I supposed to know that it was a plugin.

I have answered every single post of yours, if you are not happy with the level of support you are getting please do not post again.

This attitude does not help and it will only get you banned.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #134882 by Sportinside Portal
Replied by Sportinside Portal on topic How to get rid of adsense code when i share article on fb?
I am using plugin K2 ads elite and i dont understand the tutorial that you gave me . is there any code that you can give me and tell me where to paste it or replace instead of some code so that adsense code stops showing when i share article link on facebook ?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #134894 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to get rid of adsense code when i share article on fb?
I think you should ask the plugin's developer about this issue.
If he is not aware of the issue he cannot provide a valid solution.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum