Jump to content


Best Practice for custom CSS for Tabber widget


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 bobrandklev

bobrandklev

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 160 posts

Posted 04 October 2011 - 01:06 PM

I have a project we are using Tabber and I've customized the css in the widget files BECAUSE it loads AFTER style.css which we normally edit in the child theme.

I've made a copy locally for backup in case the tabber widget gets updated and our customization is over written.

Is there an easier way?

Should I append the CSS to the end of the style.css and mark it !important

There must be a better way to do this?

Internet Marketing, SEO and Web Design

http://CyberInnovation.com


Looking for more opportunity in life?

http://LifeIsTooBusy.com


#2 Bes Zain

Bes Zain

    Member

  • Members
  • 4,268 posts

Posted 04 October 2011 - 03:16 PM

Hi Bob, :)

Thanks for posting this! If I understand you correctly, the best way would indeed be to place it in your child theme's style.css AND use !important wherever necessary to achieve the desired effect.

The mere fact that Widget files get replaced regularly with different updates is a strong enough reason to move such CSS customization outside of those files and place them elsewhere, like in your style.css

Hope that helps! Let me know.

Regards,

Bes