Community Forums › Forums › Archived Forums › Design Tips and Tricks › installing java banner ad above header
Tagged: advertisements, banners
- This topic has 8 replies, 2 voices, and was last updated 10 years, 6 months ago by Brad Dalton.
-
AuthorPosts
-
September 30, 2013 at 5:13 pm #64854burnettsboardsMember
Ok - so here's what happened. I couldn't figure out how or where to put the javascript that an advertising company (a lifestyle network under a big tech company umbrella who I'll let remain nameless... for now) so I made them a username etc via wordpress dashboard thinking 'hey - there're a tech company - they know what they're doing). Anyway - they crash my blog. white screen of death style. Had to get my host company to go in and remove the ad code because I couldn't access anything. It's fixed now but obviously no banner ad. I've also kicked off their user account.
Question is: How do I make a banner ad appear above my header? I can't even find the <body> tag where I'm told it's supposed to be pasted. Is there a plugin that does this? I have adrotate - tried that, it didn't work.
using: Pretty Young Thing.
http://www.burnettsboards.comSeptember 30, 2013 at 5:52 pm #64863Brad DaltonParticipantYou can do this using different solutions.
Creating a widget area before you header would be the easiest.
Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
https://gist.github.com/braddalton/921052319dc0fc3657f2
September 30, 2013 at 6:31 pm #64870burnettsboardsMemberThank you!
Ok I added the widget area - then went to widgets - added 'text' widget and pasted the ad code. Still seems to not be showing up. Is there a different widget I should be using in that new above header widget area?
Mahalo again,
SaraSeptember 30, 2013 at 6:37 pm #64872Brad DaltonParticipantPlease paste the Javascript on Pastebin or Github Gists and link to it from here so i can test it.
September 30, 2013 at 6:40 pm #64874September 30, 2013 at 7:13 pm #64877Brad DaltonParticipantDidn't work for me either. Do they provide any installation instructions?
September 30, 2013 at 7:21 pm #64879burnettsboardsMemberSort of....
Except seriously after the f-up today that they caused I don't know how valid this is. Plus I was told in here earlier that wordpress does support javascript which is why I didn't really follow these instructions that closely:Please note that unlike Blogger and Tumblr, WordPress does not support javascript.
Since our ad call requires javascript, a 3rd party plugin is required for WordPress. You
may use any plugin that enables the addition of javascript. If you don’t currently have a
plug-in, either of these may be of use. Please refer to their respective urls for usage
instructions.
The wp_enqueue_script() codex: http://codex.wordpress.org/Using_JavascriptThe CSS & JS Toolbox: http://wordpress.org/extend/plugins/css-javascript-toolbox/
Insert HTML Snippet: http://wordpress.org/extend/plugins/insert-html-snippet/
The basic steps for coding ad calls with any of these plug-ins is roughly the same:
1. Log into WordPress.
2. From your Dashboard, navigate to the plugin’s settings or toolbox that enables the
addition of javascript. Please refer to the plugin’s reference page noted above for
instructions on using the selected plugin to edit HTML or add javascript.
3. Copy and paste the ad calls in the HTML after the <body> tag in the appropriate
locations on your blog. Typically the 728x90 is placed at the top of the page and the
300x250 in the right rail.
Here is the ad call code with the substitutable variables in bold:
<script type='text/javascript'>
var atwMN='[Magic Number]', atwWidth='[Width]', atwHeight='[Height]'
</script>
<script type='text/javascript' src="http://o.aolcdn.com/ads/adsWrapper3.js"></script>
[MagicNumber] Identifies the magic number for the ad space
[Width] Defines the width of the ad space
[Height] Defines the height of the ad space
4. When the ad calls are pasted in, click "Save" to save your updates.
Please note that ads may not be initially flying when implemented. This does not mean
the ads aren’t work. Ads will be flying shortly upon implementation verification by
XXX.
5. Please submit your page url(s) and magic numbers to XXX to verify
implementation.October 1, 2013 at 3:48 am #64918burnettsboardsMemberIt's working! Mahalo & thank you so much for all your help!!
October 1, 2013 at 11:50 am #64963Brad DaltonParticipant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.