Adding Java Script Under The Post body

Posted in: Newspaper
Post count: 34

Hi,

I want to add a javascript code under the post instead of related articles. could you please help me where i can add that code.

Regards

Post count: 6535

Hi

You need to edit the file corresponding with the post template used and add your custom js here: http://screencast.com/t/sa5CSg1E To remove elated article block you need to deleted the indicated line of code.

Hope this helps!
Thanks!

Post count: 34

Hi,

I have added a google code where you have mentioned in loop-single file as i am using default template but its not showing anything. i am attaching the code also.

<!– copy and paste. Modify height and width if desired. –>

my site url is http://www.pakdiscussion.com

Regards

Post count: 23312

Hello mubasshar,

I have tested on my side and the code should work as properly if you will insert there. Also, please check your ad code to be valid and try it with another one and see the results. If you want to display more levels in our theme and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for your understanding!

Post count: 34

Hi,

the code is working now, but the ads are extended behind the sidebar . please check this url and navigate to the related post section which i replaced with google ads.

thanks for your support.

Regards

Post count: 23312

Hello mubasshar,

Unfortunately, I did not saw any URL and I cannot inspect anything. Please provide it again so I can take a closer look inside.

Thanks for the message!

Post count: 34

Hi,

check out this URL. and scroll down to the related post section which i have replaced with google matched content ad.

http://www.pakdiscussion.com/meri-kahani-meri-zabani-23rd-october-2016/

Regards

Post count: 6535

HI

I’ve checked your site and the ads are properly displayed now, please check this link: http://screencast.com/t/dRFK80rlvpss
Thanks!

Post count: 34

Hi Support,

For me the ads are not showing properly , i have attached the sample image and url also.
http://www.screencast.com/t/WJqby0dUNW

http://www.pakdiscussion.com/geo-pakistan-25th-october-2016/
Regards

  • This reply was modified 9 years by mubasshar.
Post count: 22421

Hello,

Unfortunately as this is a custom modification I cannot say for sure why this happens. Your code seems to go outside of the content borders. We only recommend using the theme default ad system, not custom code added to the theme files. On pages we suggest using the ad box element present in the visual composer element drop[down and for the rest of the theme we recommend the theme ad spots: https://forum.tagdiv.com/header-ads-adsense/
If you do not plan on using the default theme implementation, we suggest hiring some help on this as this represents customization and it falls beyond what the theme support can offer you.

Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.