438 posts WordPress Gurus!
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 1-2 years
  • Referred between 200 and 499 users
  • United States
ThemeBeans says

Also you could use .logged-in.admin-bar .header { top: 32px; } to target specific elements when theres a conflict. Just an example :)

107 posts
  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • Exclusive Author
  • Europe
themespirit says

For the Admin Bar overlap issue, add…

<?php body_class ( ) ; ?> into your opening body tag.

<body <HERE>>

Then in your css, add…

.admin-bar .navbar-fixed-top { margin-top: 36px; }

Note: Replace navbar-fixed-top with whatever your navbar or header class is.

Not sure if this is the correct way for TF but it’s what they teach on TeamTreehouse

1070 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says
For admin bar I agree. You must avoid any conflicts with the theme design and as other said, there too many methods to fix this. I’ll add one more:
if ( is_admin_bar_showing() ) {
    // do something
}
322 posts Design Innovation
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
designova says

Thank you all for the suggestions.

We have fixed all the issues except the ”!important” rule. The reviewer have send us a link http://css-tricks.com/when-using-important-is-the-right-choice/ to fix this. But we are not able find a better solution.

We hope someone can provide some guidelines. If Ivor / Kailoon provide a kind response, it will be very helpful to us.

Thank you everyone

Cheers! Team Designova

322 posts Design Innovation
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
designova says

“I use !important when a plugin styling is over riding my CSS (and the plugin CSS is quite specific) my thought process is that altering it in my CSS will save it being removed when the plugin is updated.”

Is there a better way to do this?

149 posts
  • Author had a File in a Mini Bundle
  • Sold between 5 000 and 10 000 dollars
  • Most Wanted Bounty Winner
  • Author had a Free File of the Month
  • Europe
  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • Exclusive Author
  • Referred between 1 and 9 users
easydevelopment says

2. Admin bar overlap: http://envato.d.pr/L3zZ/4FqfhLpo

If the admin bar exists, the body has the “admin-bar” class, all you have to do is create a new css rule,

.admin-bar > .my-menu-patch.fixed { top:32px; }

197 posts
  • Attended a Community Meetup
  • Elite Author
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 200 and 499 users
  • Sold between 250 000 and 1 000 000 dollars
themeva says

Thank you all for the suggestions.

We have fixed all the issues except the ”!important” rule. The reviewer have send us a link http://css-tricks.com/when-using-important-is-the-right-choice/ to fix this. But we are not able find a better solution.

We hope someone can provide some guidelines. If Ivor / Kailoon provide a kind response, it will be very helpful to us.

Thank you everyone

Cheers! Team Designova

I’m interested to know what the outcome of this is too!

Reading that article, it suggests that it’s okay to use the !important rule on specific elements you want to stay rigid. e.g.

BAD USE a { color:#333 !important; }

GOOD USE .my-element a {color:#333 !important;}

59 posts MeanThemes
  • Elite Author
  • Most Wanted Bounty Winner
  • Won a Competition
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • United Kingdom
+2 more
meanthemes says

If a plugin is causing an issue, you can always use…

body .pluginclass { color: red; }

That is usually a simple way of removing the need for an !important.

322 posts Design Innovation
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
designova says

If a plugin is causing an issue, you can always use… body .pluginclass { color: red; } That is usually a simple way of removing the need for an !important.

Yep that’s okay. But some JS plugins generate CSS on run-time. In order to over-ride these styles ’!important’ comes handy, isn’t it allowed? This brings some confusion now.

322 posts Design Innovation
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
designova says

We removed most of the !important rules and now the theme has been approved :) thank you everyone for your response on this thread. Thank you so much Ivor and review team.

by
by
by
by
by
by