Disable Styling in One Sidebar Plugin Only?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
TopDawg
Regular
Posts: 46
Joined: Thu Sep 14, 2006 5:15 pm
Location: Euclid, Ohio
Contact:

Disable Styling in One Sidebar Plugin Only?

Post by TopDawg »

I have some ads through adbrite on my blog, and the styling of my blog automatically makes their whole ad orange.

How would i disable my blogs stylesheet ONLY in that plugin?
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

If you view the source of your page you'll notice that every plugin has a different and unique class name, to make an individual plugin appear differently from the others simply add that your stylesheet with the changes you need.

Now I get to contradict what I said above, the html nugget has a unique class compared to other plugins, but each instance of the plugin does not. So, to solve the problem, wrap your adbrite code within a new class that you define.

In your nugget add <div class="adbrite_nugget"> before and then </div> after your code.

Then in your stylesheet, add;

Code: Select all

.adbrite_nugget a{color:#colorchoice ; }
.adbrite_nugget a:hover {color:#colorchoice ; }
Where I've typed colorchoice, change that to the six digit code for the color of your choice. If adbrite_nugget doesn't suit your conventions, then feel free to change this to something more meaningful.

Hope that helps,

Carl
TopDawg
Regular
Posts: 46
Joined: Thu Sep 14, 2006 5:15 pm
Location: Euclid, Ohio
Contact:

Post by TopDawg »

Is there a way to have it carry no styling whatsoever, though? My goal is to let their (adbrite's) own styling come through
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Given that their code is javascript and loads the actual advertising from their server after the browser has received your page this should happen automatically just like the adsense ads do. I notice that in your source code the adbrite javascript has coded a couple of ectra styles which seem similar to your own colorselection. Have you checked their config area to see if you can select colors? The other option might be to contact them and ask for a manual change.

The only reason I can think of for them to use the same colors as your site is to make the ad's blend in, which is probably requested or expected by the majority of their publishers.
TopDawg
Regular
Posts: 46
Joined: Thu Sep 14, 2006 5:15 pm
Location: Euclid, Ohio
Contact:

Post by TopDawg »

well this is what they had me put into my sidebar. is it arranged incorrectly?

Code: Select all

<!-- Begin: AdBrite -->

<style type="text/css">
   .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #FF6E1F;}
   .adText {font: normal 10pt Arial; text-decoration: none; color: #251600;}
</style>
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=178479&br=1&dk=666c696768747320616e64207469636b6574735f335f315f776562">
</script>
<div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=178479&afsid=1">Your Ad Here</a></div>

<!-- End: AdBrite -->
TopDawg
Regular
Posts: 46
Joined: Thu Sep 14, 2006 5:15 pm
Location: Euclid, Ohio
Contact:

Post by TopDawg »

i forgot to add...this is how it renders:

Code: Select all

<!-- Begin: AdBrite --><br />
<br />
<style type="text/css"><br />
   .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #FF6E1F;}<br />
   .adText {font: normal 10pt Arial; text-decoration: none; color: #251600;}<br />
</style><br />
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=178479&br=1&dk=666c696768747320616e64207469636b6574735f335f315f776562"><br />
</script><br />
<div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=178479&afsid=1">Your Ad Here</a></div><br />
<!-- End: AdBrite -->
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

hi top_dawg

Notice in the first code snippet the two styles (.adHeadline and .adText) this is where the colors for your links are set. Changing the color value should change the way the adbrite ad is displayed. I have no idea whether doing this would go against the adbrite TOC's because I haven't used them, but it might be worth a try.

However, for these colors to be included in their javascript does suggest that somewhere in their config screen it must be possible to change the way their ad is displayed. I can only relate to adsense or TLA, but both provide a facility for selecting the ad format and in that screen the option exists for changing the colors. Adbrite should have a similar function, then you would simply need to edit your html snippet and replace the adbrite code for the new code.
Post Reply