I have a self hosted wordpress blog in which I want to add a javascript in the template. It is basically an ad code to monetize my blog. However, after trying alot I am not able to do so.
can you please past the code!! because it's strange !! the javascript codes work like a charm on wordpress!
that depend Where you need this Ad to appear !? if you need it in Sidebar you can simple Add a Text Widget and Add the Code On It ... You can do that from your Dashboard ==> appearance ==> Widgets If You Need it to appear in-Post So there is a Adsense Plugins to use Otherwise Open Single.php and Add the Code where you need it to Appear !?
Where do you want to display the ad? You can edit your template(s) here: WP Admin → Appearance → Editor.
the ad code I am trying to add is a pop up ad code. I contacted the advertiser and they said that I need to add the codes in the template. How to do that?
So go to your Dashboard==> Appearance ==> Editor Then open Header.php and put the code just before </head> Or Open Footer.php and add The code just Before </body> Goodluck
Thanks a ton buddy. You made my life easy. Placed the code where you said and it started working like a charm.