center adsense in body of Epik theme

Homepage Community Forums Epik Theme Support center adsense in body of Epik theme

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14866
    cmolchany
    Customer

      Hi,

      I have Epik installed and want to center the adsense landscape ad at the top of my jobs page. See here: http://www.craftbeveragejobs.com/jobs/

      I have looked around and tried various suggestions I’ve found, but nothing seems to work (from <center>ad</center> to the below, which came via WordPress codex (though its several years old)

      The easiest way would probably be to wrap your ad code in a div:
      <div id=”googleAd”>…google ad code…</div>
      then add:
      #googleAd { text-align: center; }
      to the bottom of your theme’s style sheet (style.css).

      Any suggestions on your end of what I can do to center the adsense in epik? Thank you

      #14876
      kronos
      Customer

        Can you ad your adsense into your site so I can take a look? Once I see it there then I can look at the source code and figure out the best way to get it centered.

        #14879
        cmolchany
        Customer

          Adsense is added to the job page: http://www.craftbeveragejobs.com/jobs/

          The banner should show up under the page title, “Craft Beverage Jobs” and above the search boxes.

          Are you not seeing them? Is this what you mean?

          Thanks,

          C

          #14881
          Jason M
          Customer

            @cmolchany You could just add a basic <div> around your adsense code (if possible) so then you an also add a class to it which you can then style from your css. Although, since adsense code usually has a set defined width, it may or may not resize….which is a problem if the space you have it in is too small and not wide enough to properly display the entire ad.

            I haven’t used adsense in a long time so I’m not sure if Google gives the option to adjust the size to what you want, or if they allow the ads to resize according to the size of the space it’s located in.

            #14888
            cmolchany
            Customer

              THanks. I think you solved it for me – the horizontal ad is just a little too wide for the space so it shoots over to the left side.

              I may have to go down in size of the banner, which will be fine, and then I think i’ll be able to center it. I don’t think there is an option to customize the size of the ad.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.