• Hi,

    I have a new banner ad that I would like to place to the right of my sidebar. I use the Theme Greenery-10, which leaves wide columns on both sides of the page, so there should be enough space.

    My site is here.

    I’m hoping someone can help me figure out the code I need to create a place to put the ad and where I should insert the ad code.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • you could add the div for your banner into header.php,
    after this line:
    <div id="wrapper">
    and before this line:
    <div id="header">

    so the area should look like:

    <div id="wrapper">
    <div class="advertizing">
    your banner adcode here
    </div>
    
    <div id="header">

    then add some new styles to the end of style.css, for instance:

    #wrapper{position:relative;overflow:visible;}
    .advertizing{position:absolute;top:20px;right:-150px;z-index:100;width:150px;height:300px;background:red;}

    adapt the number values to fit your banner.
    this obviously will leave the site uncentered.

    https://www.w3schools.com/css/css_positioning.asp

    Thread Starter mgottfried

    (@mgottfried)

    The ad needs to run along the right side of the site, so I don’t think adding it to header.php will work. I already have another banner ad there.

    Does anyone else have tips about creating a field to put the add in outside the sidebar.

    My site, again, is here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Position ad to the right of sidebar’ is closed to new replies.