CSS: Overriding an inline style

  • CXLink
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 22, 2004
  • Posts: 684
  • Loc: ATL-GA
  • Status: Offline

Post October 15th, 2009, 7:44 am

So I have a little bit of a problem with a plugin I recently installed on one of my wordpress sites. I installed sexy bookmarks and I really like the way they work but I have a problem with the way that they appear in the side bar. If you look at the sermons in the sidebar on this page (which is the way I like them) and compare with the ones on this page (note the big gaps because of the sexy-bookmarks div, which I want to go away in the sidebar). I am trying to get them to not do anything but the div they are contained in is styles with a display property that overides my display none. Any suggestions on how to fix this?
Push-Here ::: Web Design + Identity
WordPress - like mayonnaise - goes great with anything
We adore chaos because we love to produce order. -M. C. Escher
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 15th, 2009, 7:44 am

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post October 15th, 2009, 8:00 am

You've tried putting the display:none on the elements inline? That should override the styling set in style.css
I'd love to change the world, but they won't give me the source code.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post October 15th, 2009, 8:16 am

In addition to what UPSGuy said, you can also try the IMPORTANT directive in your CSS file.

Code: [ Select ]
display:none !important;


...if you're like me, and whince at style attributes in the markup.
- dM
  • CXLink
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 22, 2004
  • Posts: 684
  • Loc: ATL-GA
  • Status: Offline

Post October 15th, 2009, 8:28 am

@UPS I cant put it on the element since it is being generated by the plugin and I do want the div to show up on the post, just not the sidebar.

@dM will give it a shot. I hate using !important

[UPDATE] @dM it doesn't look like the !important is strong enough to overide the display:block !important; inline on the element. However if I take the !important off of the inline element it looks like it will knock it out. I just dont want to have to edit the plugin, since I will have to make they change everytime I update it. But that may be the only route.
Push-Here ::: Web Design + Identity
WordPress - like mayonnaise - goes great with anything
We adore chaos because we love to produce order. -M. C. Escher
  • CXLink
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 22, 2004
  • Posts: 684
  • Loc: ATL-GA
  • Status: Offline

Post October 19th, 2009, 10:48 am

K don't worry about it. I read the FAQ and the second to last thing shows how to remove it on a post by post basis.
Push-Here ::: Web Design + Identity
WordPress - like mayonnaise - goes great with anything
We adore chaos because we love to produce order. -M. C. Escher

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 92 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.