Theming Exchange - Remove Default Exchange Stylesheet

From IThemes Codex
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''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 ...")
 
 
Line 9: Line 9:
 
</pre>
 
</pre>
  
Adding this to the <code>exchange/style.css</code> file of your theme will disable the default stylesheet. All you have to do from here is copy over the styles you need from <code>ithemes-exchange/lib/assets/styles/exchange.css</code> (or be a true ninja and write your own).
+
Adding this to the <code>functions.php</code> 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 <code>ithemes-exchange/lib/assets/styles/exchange.css</code> (or be a true ninja and write your own).

Latest revision as of 04:39, December 18, 2013

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