Support » Plugins and Hacks » [Plugin: Ad Injection] side by side

[Plugin: Ad Injection] side by side

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author reviewmylife


    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 4×4 ad grid with Ad Injection on this page but you can modify it for 2×1: http://www.netrival.com/ad-injection-simply-great-wordpress-plugin/


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

    Plugin Author reviewmylife


    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.

    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 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 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. 😉

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Ad Injection] side by side’ is closed to new replies.