Banner adds

  • whoooops

    #4850

    Hi Everyone, I am using the Graphene theme, but my question is really about ads, is it possible to display adds on the space either side of the actual wordpress site? I have seen it on other sites, but what the best way to go about it? i already have adwit-benner manager installed, but i don’t think this will allow me to display adds outside the wordpress theme?

    I have a number of javascript banners and graphic banners that i would like to use..

    Any help appreciated..

    ronangelo

    #29500

    try the action hook graphene_container_before

    you can add things outside the container.

    Mod

    Kenneth John Odle

    #29501

    You can also use the header widget, and define the position via CSS.

    See this post:

    https://forum.graphene-theme.com/graphene-support/how-can-i-add-adsense-to-the-background-image-1#post-5040

    I’m thinking that the graphene_container_before might work the same way.

    whoooops

    #29502

    Thank you, I followed the post on the page suggested and it worked!..at the moment my add is on the left hand side of the header, can i also display adds on the right hand side?

    Mod

    Kenneth John Odle

    #29503

    Yes, but you will want to change things up a bit. If you are using this code:

    .header-widget {
    position:fixed;
    top:10px;
    left:10px;
    }

    It will put all of your ads that you place in the header widget in the same place. What you need to do is to create a new id for each ad:

    #ad-1 {
    position:fixed;
    top:10px;
    left:10px;
    }

    and

    #ad-2 {
    position:fixed;
    top:10px;
    right:10px;
    }

    Then, in a text widget, wrap each ad code in a <div> with that unique ID:

    For an ad on the left:

    <div id="ad-1">
    code for ad goes here
    </div>

    For an ad on the right:

    <div id="ad-2">
    code for ad goes here
    </div>

    If you want more than one ad on each side, follow the same plan, but play around with the top position.

    whoooops

    #29504

    Thanks kenneth, that worked for me…:)

    Mod

    Kenneth John Odle

    #29505

    Marking thread as resolved. You can do this yourself as well.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!