Adding ads to my site.

by taaron
6 replies
Hi guys! I'm not sure if this should be in the other section or if here is fine. :confused:

I'm using the Admired Theme for my wordpress site, Taaron.org. I've placed a 250 x 250 Square ad on my site, but I'm not seeing the click through rate I'd want, so I decided to switch it to a recommended 300 x 250 Medium Rectangle.

However, the Medium rectangle gets cut off. I've created a child theme, created the child style css, and I'm not sure what to do now. I've copied over the data for the left div from the parent style.css to the child.css, and changed the width to 300 on the child.css, however I'm not seeing any change. Am I doing something wrong? :confused:

Additionally, I'd like to put in an wide adsense banner between the header and the posts, so I copied over the index.php as well. Would it better to just drop in the adsense data, or create a separate adsense.php file and use the get command to bring it in?

Much appreciated, thanks!
#adding #ads #site
  • Profile picture of the author topnichewebsites
    Might be easier to just go with a 1 sidebar vs 2 then the 300 wide will fit better. On your right side bar images are cutoff in your twitter feed as well. As far as the banner between your header and posts just code the header.php file with your adsense code.
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8393089].message }}
    • Profile picture of the author RobinInTexas
      I'm not seeing any alterations to the main theme's CSS in the child theme.
      Signature

      Robin



      ...Even if you're on the right track, you'll get run over if you just set there.
      {{ DiscussionBoard.errors[8393826].message }}
      • Profile picture of the author taaron
        yay! I found the div I needed to edit.

        Only thing now...it's overlapping my posts. :/ Should I set it to the parent theme while I tinker on the Child theme?
        {{ DiscussionBoard.errors[8394172].message }}
  • Profile picture of the author RobinInTexas
    I usually make sure I have a backup and make small adjustments like you are dealing with live, if the site breaks, I can restore immediately.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8397315].message }}
  • Profile picture of the author taaron
    Thanks. Set it over to the parent theme while I tinker.
    {{ DiscussionBoard.errors[8398578].message }}
  • Profile picture of the author taaron
    Okidoke. Updates time, I got my problem with the top adblock and content figured out.

    The original advice I had found on a search about adding adsense to the Admired theme, someone had suggested to put the adsense banner between
    <div id="primary">
    <div id="content" role="main">
    and the PHP to pull the posts kicked in. No matter what changes to the CSS I made, I couldn't figure out how to move it.

    Finally, I just decided to put the Adsense code outside the primary div. Problem solved.

    The content section being over lapped was an incredibly easy fix, too. All I had to do with set the width to 95% or 96% and it was no longer being covered.

    My side bars are still looking a little cut off on the right sides, but I'll worry about those later. I'm happy with this small victory.
    {{ DiscussionBoard.errors[8405655].message }}

Trending Topics