Theming Exchange - Remove Default Exchange Stylesheet

From IThemes Codex
Revision as of 05:39, December 18, 2013 by Ronald (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is an advanced option and should be used with caution.

In some cases you may not need the default Exchange stylesheet for styles. For example, if you know you are going to have a store with ten products (all downloads) and users can only purchase one product at a time, the need for all the styles in the default stylesheet is not necessary.

You can remove the default Exchange stylesheet with a simple filter.

add_filter( 'it_exchange_disable_frontend_stylesheet', '__return_true' );

Adding this to the functions.php file of your active theme will disable the default stylesheet. All you have to do from here is copy over the styles you need from ithemes-exchange/lib/assets/styles/exchange.css (or be a true ninja and write your own).

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox