{"id":494,"date":"2009-04-01T10:20:43","date_gmt":"2009-04-01T15:20:43","guid":{"rendered":"http:\/\/www.wp-smooth.com\/?p=494"},"modified":"2014-11-12T15:01:52","modified_gmt":"2014-11-12T15:01:52","slug":"how-to-add-125x125-banner-ads-to-your-right-sidebar","status":"publish","type":"post","link":"https:\/\/demo.solostream.com\/wp-mediamag\/2009\/04\/01\/how-to-add-125x125-banner-ads-to-your-right-sidebar\/","title":{"rendered":"How to Add 125&#215;125 Banner Ads to Your Right Sidebar"},"content":{"rendered":"<p>Many people like to display 125&#215;125 banner ads in their sidebar. In this tutorial, I&#8217;ll show you how to add them to your own site.<!--more--><\/p>\n<h3>Step 1 &#8211; Upload a Generic 125&#215;125 Banner<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2014\/11\/banner125.gif\"><img decoding=\"async\" src=\"http:\/\/demo.solostream.com\/wp-mediamag\/wp-content\/uploads\/sites\/30\/2009\/04\/banner125.gif\" alt=\"banner125\" title=\"banner125\" width=\"125\" height=\"125\" class=\"alignright size-full wp-image-688\" \/><\/a>The image to the right is already located in the \/images folder found in your theme folder, so you can use that if you like. The file name is banner125.gif.<\/p>\n<p>Alternatively, you can use your own generic 125&#215;125 banner; just be sure to name it banner125.gif and upload it to the \/images folder within your theme folder (or change the file name used below to reflect the name of your own file).<\/p>\n<h3>Step 2 &#8211; Create a New Text Widget in Your Right Sidebar for the Banner Ads<\/h3>\n<p>Add a new text widget to your top right sidebar, give it a title if you like. Then copy and paste the following code into the widget box:<\/p>\n<p><code><\/p>\n<div class=\"banner125\"><\/code><\/p>\n<p><code><\/p>\n<div class=\"ad\"><a href=\"\/wp-mediamag\/wp-mediamag\/http:\/\/www.link1.com\"><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-dev\/images\/banner125.gif\" width=\"125\" height=\"125\" alt=\"banner ad\" \/><\/a><\/div>\n<p><\/code><\/p>\n<p><code><\/p>\n<div class=\"ad\"><a href=\"\/wp-mediamag\/wp-mediamag\/http:\/\/www.link2.com\"><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-dev\/images\/banner125.gif\" width=\"125\" height=\"125\" alt=\"banner ad\" \/><\/a><\/div>\n<p><\/code><\/p>\n<p><code><\/p>\n<div class=\"ad\"><a href=\"\/wp-mediamag\/wp-mediamag\/http:\/\/www.link3.com\"><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-dev\/images\/banner125.gif\" width=\"125\" height=\"125\" alt=\"banner ad\" \/><\/a><\/div>\n<p><\/code><\/p>\n<p><code><\/p>\n<div class=\"ad\"><a href=\"\/wp-mediamag\/wp-mediamag\/http:\/\/www.link4.com\"><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-dev\/images\/banner125.gif\" width=\"125\" height=\"125\" alt=\"banner ad\" \/><\/a><\/div>\n<p><\/code><\/p>\n<p><code><\/div>\n<p><\/code><br \/>\n<\/code><\/p>\n<blockquote><p><strong>Note 1<\/strong>: In the above code, you&#8217;ll need to change mysite.com to your own site domain name.<\/p>\n<p><strong>Note 2<\/strong>: In the img src code above, you may need to change the \/wp-mediamag-dev\/ part to reflect the actual name of your theme folder.<\/p>\n<p>For WP-MediaMag Basic version, the img src would be:<br \/>\n<code><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-basic\/images\/banner125.gif\" alt=\"banner ad\" \/><\/code><\/p>\n<p>For WP-MediaMag Premium version, the img src would be:<br \/>\n<code><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-prem\/images\/banner125.gif\" alt=\"banner ad\" \/><\/code><\/p>\n<p>For WP-MediaMag Developer version, the img src would be:<br \/>\n<code><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-dev\/images\/banner125.gif\" alt=\"banner ad\" \/><\/code><\/p><\/blockquote>\n<h3>Step 3 &#8211; Replace the Generic Banners and Links With Real Ads<\/h3>\n<p>All you need to do is upload your own 125&#215;125 banner image(s) to the \/images folder, and change the code above to reflect that.<\/p>\n<p>For example, if you upload a new banner called <strong>ad125.gif<\/strong>, and you want to link that banner to <strong>www.solostream.com<\/strong>, you would simply change the code to this:<\/p>\n<p><code><\/p>\n<div class=\"ad\"><a href=\"\/wp-mediamag\/wp-mediamag\/http:\/\/www.solostream.com\"><img decoding=\"async\" src=\"http:\/\/www.mysite.com\/wp-content\/themes\/wp-mediamag-basic\/images\/ad125.gif\" alt=\"banner ad\" \/><\/a><\/div>\n<p><\/code><\/p>\n<p>And that&#8217;s it. The Stylesheet is already set up to display the ads correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many people like to display 125&#215;125 banner ads in their sidebar. In this tutorial, I&#8217;ll show you how to add them to your own site.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-494","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":1,"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":939,"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/posts\/494\/revisions\/939"}],"wp:attachment":[{"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-mediamag\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}