Forums

wp125 plugin problem - My ads don't appear in two columns (14 posts)

  1. talgalili
    Member
    Posted 6 months ago #

    Hi there.

    I tried following the faq:
    http://wordpress.org/extend/plugins/wp125/faq/
    It doesn't seem to help (since there is enough space).

    The problem seems to be in the "float" element in the css.
    If I set it to:
    float: right
    Then there are two columns, but the space in the bottom of the sidebar breaks (meaning, the ads slide over to the next widget).
    And if I remove the float element, the sidebar is fine, but the ads are just in one column.

    Any ideas ?

    Thanks,
    Tal

  2. redwallhp
    Member
    Posted 6 months ago #

    You can clear the float (to prevent the overlapping widget problem) by opening the wp125.php file and find:

    } else { echo '<div class="wp125ad'.$altclass.'"><a href="'.$setting_buyad_url.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$setting_defaultad.'" alt="" /></a></div>'."\n"; }
    }
    echo "</div>\n";

    Then add to it so it looks like this:

    } else { echo '<div class="wp125ad'.$altclass.'"><a href="'.$setting_buyad_url.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$setting_defaultad.'" alt="" /></a></div>'."\n"; }
    }
    echo '<br style="clear:both" />';
    echo "</div>\n";
  3. talgalili
    Member
    Posted 6 months ago #

    redwallhp,
    It worked great - thank you very much !

  4. murali.fbf
    Member
    Posted 5 months ago #

    Hi I have iNove theme installed.

    in sidebar width is 300px. I tried above all but stil my ads showing in one column.

    Any help please.

  5. redwallhp
    Member
    Posted 5 months ago #

    @murali.fbf, Try reducing the padding around the ads. (See the plugin FAQs.)

  6. murali.fbf
    Member
    Posted 5 months ago #

    Hi RedWall,

    I got it.
    Thanks mate.

  7. rbeazley
    Member
    Posted 5 months ago #

    Hi! I have greatly benefited from this forum post. Thank you SO much.

    redwallhp OR someone else - I went into the code looking for the padding code #wp125adwrap_2c .wp125ad { padding:10px; } (I realize where I DO find it - that I need to change the 10 to something else, as listed on then FAQ page and can't find it. WHERE can I find it?? Please...THANKS!!

  8. redwallhp
    Member
    Posted 5 months ago #

    It's in the wp125/wp125.css file.

  9. rbeazley
    Member
    Posted 5 months ago #

    Hi again!!

    All I can find is the wp125/wp125.php file and wasn't able to locate the code?? Sorry for being a pain, I REALLY appreciate your help. Thanks in advance.

  10. redwallhp
    Member
    Posted 5 months ago #

    You need to use FTP, the internal plugin editor will only let you edit the root plugin file, though WP 2.8 is supposed to fix that...

  11. rbeazley
    Member
    Posted 5 months ago #

    Thank you Thank you Thank you!! I REALLY appreciate your help redwallhp. Have an amazing weeked.

  12. bevoost
    Member
    Posted 5 months ago #

    Hello RedWall,

    I also am unable to get 2 columns in my left sidebar. I have tried the following:

    - CSS file: decreasing padding to 2px
    - CSS file: increasing width to 280px
    - PHP file: inserting the echo '<br style="clear:both" />'; code
    - left sidebar width increased to 280px

    Nothing works. I do not have supercache either.

    Any ideas?

    Thank you,

    bevoost

  13. bevoost
    Member
    Posted 5 months ago #

    Interesting...I just decreased the width in CSS file to 125px...now everything works beautifully! So, for others who are experiencing the 2 column issue:

    1) WEBPAGE SIDEBAR: decrease padding (e.g. to 5px),
    2) WEBPAGE SIDEBAR: increase width (e.g. to 268px)
    2) CSS FILE: decrease padding (e.g. to 2px)
    3) PHP: insert the code: echo '<br style="clear:both" />';

    (see redwall's first response on this page)

    Cheers!

    bevoost

  14. giannifarotto
    Member
    Posted 3 months ago #

    THANKS.
    This page was the most helpful I could find.
    Bye everyone

Reply

You must log in to post.

About this Topic

Tags