• mentorjoe

    (@mentorjoe)


    Hello,

    I am trying to add banner button ads to my sidebar, there are ad spaces there, however, I don’t know how to add my banners. If anyone knows about this, I would appreciate your input. This is my blog address, https://josephhinkle.com

    Thanks,
    Joseph Hinkle

Viewing 12 replies - 1 through 12 (of 12 total)
  • buddha-trance

    (@buddha-trance)

    On sidebar.php, in your theme’s folder, you should find this code

    <!-- ADS start -->
                <div id="right_ads">
    				<div id="right_ads_top">
    					<div class="right_ads_item">
    						<a href="#"><img src="https://www.josephhinkle.com/wp-content/themes/Office/images/!ads.gif" alt="" /></a>
    					</div>
    					<div class="right_ads_item last">
    						<a href="#"><img src="https://www.josephhinkle.com/wp-content/themes/Office/images/!ads.gif" alt="" /></a>
    					</div>
    					<div class="right_ads_item">
    						<a href="#"><img src="https://www.josephhinkle.com/wp-content/themes/Office/images/!ads.gif" alt="" /></a>
    					</div>
    					<div class="right_ads_item last">
    						<a href="#"><img src="https://www.josephhinkle.com/wp-content/themes/Office/images/!ads.gif" alt="" /></a>
    					</div>
    				</div>
                </div>
    			<!-- ADS end -->

    In <a href="#"> add the link of the banner in place of #.

    In img src, put the path to the banner image.

    If you have a Google Adsense account, or the like, replace the content of each <div class="right_ads_item etc.> with the code they give you.

    That should work.

    Thread Starter mentorjoe

    (@mentorjoe)

    Hi Friend,

    Thanks for your reply. I am sorry, I don’t understand what you are telling me, however, I do appreciate your help.

    The code that I need to add, looks like this,

    <img src=”https://adtactics.com/images/125×125.gif&#8221;
    border=”0″>

    buddha-trance

    (@buddha-trance)

    @mentorjoe

    you have 4 ad spaces there, to fill the first one with the code you have:

    <!-- ADS start -->
                <div id="right_ads">
    				<div id="right_ads_top">
    					<div class="right_ads_item">
    						<img src="https://adtactics.com/images/125x125.gif"
    border="0" />
    					</div>
    					<div class="right_ads_item last">
    						<a href="#"><img src="https://www.josephhinkle.com/wp-content/themes/Office/images/!ads.gif" alt="" /></a>
    					</div>
    					<div class="right_ads_item">
    						<a href="#"><img src="https://www.josephhinkle.com/wp-content/themes/Office/images/!ads.gif" alt="" /></a>
    					</div>
    					<div class="right_ads_item last">
    						<a href="#"><img src="https://www.josephhinkle.com/wp-content/themes/Office/images/!ads.gif" alt="" /></a>
    					</div>
    				</div>
                </div>
    			<!-- ADS end -->

    This adds the image you mention (no link for this ad?).

    Look in sidebar.php of your theme.
    wp-content/themes/office/sidebar.php … the ad code should be in there. If not, look into the other template files of your theme.

    Thread Starter mentorjoe

    (@mentorjoe)

    Hi Buddha Trance,

    I wqs searching for the code you mentioned, this is the only code in my sidebar.php. Your code looked completely different.

    <div id=”sidebar” class=”sidebars”>

      <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ){
      ?>
      <?
      } else { ?>

      <li class=”widget_categories”>
      <h2>Category</h2>

      <?php wp_list_cats(‘sort_column=name&optioncount=1’); ?>

    <li class=”widget_archives”>
    <h2>Archives</h2>

      <?php wp_get_archives(‘type=monthly’); ?>

    <?php wp_list_bookmarks(); ?>

    <?php } ?>

    </div>

    buddha-trance

    (@buddha-trance)

    Let me download your theme and see where that code is.

    buddha-trance

    (@buddha-trance)

    Just found it, for some reason it’s in footer.php of your Office theme.

    Thread Starter mentorjoe

    (@mentorjoe)

    So, if it isn’t where it is suppose to be, how do I get into sidebar.php file?

    Thread Starter mentorjoe

    (@mentorjoe)

    buddha-trance

    (@buddha-trance)

    The code is in footer.php.

    You need to open footer.php, in your theme’s folder, and change the ad code as above.

    Don’t worry about sidebar.php, since it’s not needed. The code wasn’t there. Leave that file alone.

    It’s just the way your theme was built. What I thought may have been in sidebar.php, is actually in footer.php

    buddha-trance

    (@buddha-trance)

    Just to make sure there is no confusion, it’s fine the way it is, and ad code is where it is supposed to be, based on the way the theme is built.

    There is nothing wrong with it!

    I downloaded an Adsense ready theme – ProSense. It said all you have to do is update the id which I did, but there are no ads on my site. Any ideas? I’m guessing there is something else I need to do to activate these adsense templates.

    Never Mind! My adsense starting working. I guess it takes it awhile to load.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Sidebar issue’ is closed to new replies.