Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

How to override general sidebar CSS style/formatting in sidebar ads?

Build custom WP THEMES, without
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old Dec 8, 2011, 03:58 AM
1 posts · Mar 2011
Hi, I would like to place text-ads in a sidebar text widget - with individual formatting just for this widget. But what happens is, that my text formatting always gets overridden by the default, general sidebar style.

I've tried following formatting:

<style type="text/css">
a.adBody {text-decoration:none;color:black;}
a.adBody:link {text-decoration:none;color:black;}
a.adBody:visited {text-decoration:none;color:black;}

but with no success. Why does it work with Google text ads?
Any idea?

(I've attached an example sceenshot, where the same ad shows up correctly in the post and in the wrong format in the widget.)
Thanks in advance,
Attached Thumbnails
Click image for larger version

Name:	Program Manager_2011-12-08_11-43-01.jpg
Views:	359
Size:	187.6 KB
ID:	1655  
Old Dec 8, 2011, 06:33 AM
juggledad's Avatar
22,944 posts · Mar 2009
OSX 10.10.1 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
different plugins create their widgets differently, with different class names and ID's so it is impossible to code a CSS Selector that will handle all cases.

You need to examine the source of the page to lok at the classes and then construct the CSS you want applied. FireBug in FireFox is a great tool to do this with.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


ads, sidebar, style, text, widget

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Child Themes / carryover sidebar formatting into new blogs wadams92101 Sidebars & Widgets 1 Jul 27, 2010 07:04 PM
formatting of sidebar abruptly changed RS4 Sidebars & Widgets 4 Jan 6, 2010 01:53 PM
Adding sidebar links outside of the blogroll (with formatting matching the sidebar) Flur Sidebars & Widgets 8 Jul 21, 2009 10:50 AM

All times are GMT -6. The time now is 06:32 AM.

Powered by vBulletin® Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.