Advertisements on website
-
I have three advertisements up on my website, which can be viewed @ TheFanManifesto.com
i have a couple of questions:
1) If you look at the ad in the right sidebar, there is an empty white space to the right of it. I can’t make the ad wider, so how do I either get rid of the white space or center the ad?
2) The other two ads are at the bottom of the page, because they do not fit without overlap anywhere else. Is there anyway to put the panoramic ad either at the very top of the page or below the slider?
Mod
Right sidebar: I take it that you’re just pasting JavaScript into a text widget. In that case, enclose everything in div’s styled like this:
<div style="text-align:center;">
ad code goes here
</div>As far as the bottom ads, I’m not quite sure there is an easy answer, but I will look into it when I get time.
Ken
I have the following code in the text widget, but it is still not centered. Let me know if you see a mistake..
<div style=”text-align:center;”>
<iframe id=”yb_widget_20137″ frameBorder=”0″ scrolling=no style=”width: 230px; height: 450px; border: 0px;” src=”http://www.yardbarker.com/widget/ybn/20137″></iframe>
<div style=”width: 230px; padding: 2px 0px 20px 0px; font-size: 11px; line-height: 12px; clear: both;”> All Sports Rumors & News >
</div>
my mistake…wrong code and I have that fixed. Let me know if you figure a solution to the other issue.
Admin
Quote:2) The other two ads are at the bottom of the page, because they do not fit without overlap anywhere else. Is there anyway to put the panoramic ad either at the very top of the page or below the slider?You must create a child theme for this. Then inside your child theme’s folder, add a new
functions.phpfile if you don’t already have one. Then add this code inside that file:<?php
function graphene_top_ad(){
?>
<!-- Insert your ad codes here -->
<?php
}
add_action( 'graphene_top_content', 'graphene_top_ad', 20 );
?>I pulled that out from the top of my head, but it should work.
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
