Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enqueue CSS pour WooCommerce
<?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
You can’t perform that action at this time.