diff --git a/sass/woocommerce.scss b/sass/woocommerce.scss index 2d259d39..6a67e2eb 100644 --- a/sass/woocommerce.scss +++ b/sass/woocommerce.scss @@ -4,6 +4,12 @@ Theme Name: _s WooCommerce styles override */ +/** + * WooCommerce Plugin path variables + */ +$woocommerce__plugin-path: '../../plugins/woocommerce/'; +$woocommerce__plugin-assets-font-path: '#{$woocommerce__plugin-path}assets/fonts/'; + /** * WooCommerce color variables */ @@ -22,11 +28,11 @@ $woocommerce__color-info: #3D9CD2; */ @font-face { font-family: 'star'; - src: url('../../plugins/woocommerce/assets/fonts/star.eot'); - src: url('../../plugins/woocommerce/assets/fonts/star.eot?#iefix') format('embedded-opentype'), - url('../../plugins/woocommerce/assets/fonts/star.woff') format('woff'), - url('../../plugins/woocommerce/assets/fonts/star.ttf') format('truetype'), - url('../../plugins/woocommerce/assets/fonts/star.svg#star') format('svg'); + src: url('#{$woocommerce__plugin-assets-font-path}star.eot'); + src: url('#{$woocommerce__plugin-assets-font-path}star.eot?#iefix') format('embedded-opentype'), + url('#{$woocommerce__plugin-assets-font-path}star.woff') format('woff'), + url('#{$woocommerce__plugin-assets-font-path}star.ttf') format('truetype'), + url('#{$woocommerce__plugin-assets-font-path}star.svg#star') format('svg'); font-weight: normal; font-style: normal; } diff --git a/woocommerce.css b/woocommerce.css index d9aa9c53..c3dcbac8 100644 --- a/woocommerce.css +++ b/woocommerce.css @@ -3,6 +3,9 @@ Theme Name: _s WooCommerce styles override */ +/** + * WooCommerce Plugin path variables + */ /** * WooCommerce color variables */