Friday, October 30, 2009

How to align Chikita ads better on your Wordpress blog

(My Original Blog Post: http://mywebmastertips.com/align-chikita-ads-better-on-wordpress-blog/)
Chikita Sphere ad network.Chikita ads aren't going to look out of alignment on every Wordpress blog, but some blogs, due to their style sheet, will make the Chikita Wordpress plugin look a little bit out of alignment. If this is the case for you, don't worry, it's an easy css fix depending on your needs.

Whether you place the Chikita ad on the top or bottom of your post. You might want to center it, or give the Chikita ad just a little bit more padding on the bottom.

Here's what you gotta do. Log into your Wordpress blog back office. Go to Plugins, then click on Editor. Next find the Chikita Premium plugin. You are going to what to edit the premium.php file. Look for this code (it is the settings for the javascript).

$PREMIUM_DEFAULTS['template'] ='<!-- Chitika|Premium - WordPress Plugin --><div class="chitika-adspace {%placement%}"><script type="text/javascript"><!--
ch_client = {%client%};
ch_type = "mpu";
ch_width = {%width%};
ch_height = {%height%};
ch_color_bg = {%background%};
ch_color_title = {%titlecolor%};
ch_color_site_link = {%titlecolor%};
ch_color_text = {%textcolor%};
ch_non_contextual = 4;
ch_vertical = "premium";
ch_font_title = {%font%};
ch_font_text = {%font%};
ch_sid = {%channel%};
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) { ch_query = ch_queries[ch_selected]; } //--></script>
<script src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript"></script></div>';


Now, simply add these to commands to the div, (you can add more commands if you'd like to).

style="padding-bottom:8px;" align="center"

Now the div's commands will look something like this depending on your needs.

<div class="chitika-adspace {%placement%}" style="padding-bottom:8px;" align="center">

That's pretty much it. Unfortunately, when an upgrade comes along, you will have to make these changes again.

0 comments:

Post a Comment