WordPress.org

Ready to get started?Download WordPress

Forums

How to change size of advertising boxes (2 posts)

  1. lance_kidd
    Member
    Posted 4 years ago #

    Could someone look at http://www.dangthispc.com and tell me if there is anyway to change the lenght and width of the advertising boxes that are in the right sidebar?

    Right now they are 125 X 125. I would like to change them preferrably to individual sizes depending on what I need, are at best to a different default for all of them than what it is currently set at.

  2. dtiger2k
    Member
    Posted 4 years ago #

    You can change those. The styling for them is the widget-bar div in your css. The width size is set to 266px with 15px padding left, right and top. You can use the whole space for how many ads you want as long as they don't extend 266px counting the padding. There is no height per picture so they can be any height. You can use .gif, .jpg, or .png pictures, just edit your sidebar.php file to insert them here:

    <ul id="ads">
    <li>
    <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/ad.gif" alt="ads" /></a>
    <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/ad.gif" alt="ads" /></a>
    <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/ad.gif" alt="ads" /></a>
    <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/ad.gif" alt="ads" /></a>
    </li>
    </ul>

    You can insert more lines above. If the total of the pictures and padding equals more than 266px it will drop down to the next line.

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.