WordPress.org

Forums

Ad Injection
side by side (7 posts)

  1. caitlincg
    Member
    Posted 3 years ago #

    Hi,

    I am a big fan of Ad Injection and have never had a problem. I am wondering if there is a way that you have put two 125 pxl ads next to each other...or am I missing something!

    Any feedback is appreciated!

    Thanks,
    caitlin

    http://wordpress.org/extend/plugins/ad-injection/

  2. reviewmylife
    Member
    Plugin Author

    Posted 3 years ago #

    Hi caitlincg,

    That isn't hard to do. Either use divs or tables to lay out the ads next to each other. You'll have to put the divs/tables and ad code into the Ad Injection ad box.

    There is an example of how to do a 4x4 ad grid with Ad Injection on this page but you can modify it for 2x1: http://www.netrival.com/ad-injection-simply-great-wordpress-plugin/

  3. caitlincg
    Member
    Posted 3 years ago #

    thanks!

  4. caitlincg
    Member
    Posted 3 years ago #

    these are still showing up in a vertical line, not side by side. any tips?
    enfianced.com

  5. reviewmylife
    Member
    Plugin Author

    Posted 3 years ago #

    Hi caitlincg, have you tried the netrival idea? From looking at the HTML on that URL I can't see any sign that you have.

    It looks like you have just put each ad in a separate widget which will of course make them appear in a vertical line.

    If the CSS/DIV idea is too complicated you could just lay out your 2 ads with a table.

  6. netrival
    Member
    Posted 3 years ago #

    You may split div like this:

    <div id="nrad125">
       <div class="adslot 1">YOUR AD CODE HERE</div>
       <div class="adslot 2">YOUR AD CODE HERE</div>
    </div>
    <div id="nrad125" style="margin-left:5px;">
       <div class="adslot 3">YOUR AD CODE HERE</div>
       <div class="adslot 4">YOUR AD CODE HERE</div>
    </div>
    <div style="clear:both;"></div>

    And css part should be like this:

    #nrad125 {
        float: left;
    }
    .adslot {
        background: none repeat scroll 0 0 #FCFCFC;
        border: 1px solid #F2F2F2;
        display: block;
        height: 125px;
        margin: 0 0 5px;
        padding: 2px;
        width: 125px;
    }

    I hope it will work. ;-)

  7. netrival
    Member
    Posted 3 years ago #

    Oh, Remove 1 ad from each div nrad125 so you may be able to show 2 ads side by side.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ad Injection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic