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
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 8, 2011, 03:58 AM
wmiedl
 
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,
Wolfgang
Attached Thumbnails
Click image for larger version

Name:	Program Manager_2011-12-08_11-43-01.jpg
Views:	265
Size:	187.6 KB
ID:	1655  
  #2  
Old Dec 8, 2011, 06:33 AM
juggledad's Avatar
juggledad
 
22,099 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Tags
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 03:11 AM.


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