Skip to content

Instantly share code, notes, and snippets.

@gregoirenoyelle
Last active January 21, 2018 08:11
Show Gist options
  • Select an option

  • Save gregoirenoyelle/25011101be34c2a4f72b0669c0fc13f6 to your computer and use it in GitHub Desktop.

Select an option

Save gregoirenoyelle/25011101be34c2a4f72b0669c0fc13f6 to your computer and use it in GitHub Desktop.
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