Last active
January 21, 2018 08:11
-
-
Save gregoirenoyelle/25011101be34c2a4f72b0669c0fc13f6 to your computer and use it in GitHub Desktop.
Enqueue CSS pour WooCommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Enqueue CSS pour WooCommerce | |
| * | |
| * Les CSS déclarés dans votre thème seront chargés après ceux de WooCommerce | |
| * | |
| * @package Genesis Sample | |
| * @author Grégoire Noyelle | |
| * @license GPL-2.0+ | |
| */ | |
| add_filter( 'woocommerce_enqueue_styles', 'gn_woocommerce_styles' ); | |
| /** | |
| * Enqueue les CSS personnalisés de votre thème. | |
| * | |
| */ | |
| function gn_woocommerce_styles( $enqueue_styles ) { | |
| $enqueue_styles['genesis-sample-woocommerce-styles'] = array( | |
| 'src' => get_stylesheet_directory_uri() . '/lib/woocommerce/votre-theme-woocommerce.css', | |
| 'deps' => '', | |
| 'version' => CHILD_THEME_VERSION, | |
| 'media' => 'screen' | |
| ); | |
| return $enqueue_styles; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment