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 ...")
 
 
(One intermediate revision by one user not shown)
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).
 +
 
 +
==See also==
 +
 
 +
*[[Theming_Exchange_-_Getting_Started|Theming Exchange]]
 +
**[[:Theming_Exchange_-_Getting_Started|Getting Started]]
 +
**[[Theming_Exchange_-_Customize_Generated_Pages_Output|Customize Exchange Generated Pages Output]]
 +
**[[Theming_Exchange_-_Adding_Custom_Templates|Adding Custom Templates]]
 +
**[[Theming_Exchange_-_Functions_List|Functions List]]
 +
**Filters
 +
***[[Theming_Exchange_-_Remove_Default_Exchange_Stylesheet|Removing Default Stylesheet]]
 +
***[[Theming_Exchange_-_Filtering_Exchange_Template_Part_Elements|Filtering Exchange Template Part Elements]]
 +
**Actions
 +
***[[Theming_Exchange_-_Complete_Action_Hook_List|Complete Action Hook List]]
 +
***[[Theming_Exchange_-_Hooking_into_Exchange_Templates|Hooking into Exchange Templates]]
 +
**Conditionals
 +
***[[Theming_Exchange_-_Checking_if_on_an_Exchange_Page|Checking if on an Exchange Page]]
 +
**Snippets
 +
***[[Theming_Exchange_-_Getting_a_Product_Image_of_Any_Registered_Size|Getting a Product Image of Any Registered Size]]
 +
*[[:Exchange_Themes_Overview|Overview]]
 +
*[[:Exchange_Theme_Templates|Exchange Theme Templates]]
 +
*[[:Exchange_Template_Updates|Template Updates]]
 +
 
 +
<br />
 +
[[:Exchange|← Back to Exchange Codex Home]]

Latest revision as of 17:59, January 19, 2015

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).

See also


← Back to Exchange Codex Home

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox