functions.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Storefront theme compatibility. |
| 4 | * |
| 5 | * @package Tutor\ThemeCompatibility\Storefront |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 1.0.0 |
| 9 | */ |
| 10 | |
| 11 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | add_action( 'wp_enqueue_scripts', 'tutor_storefront_scripts' ); |
| 14 | |
| 15 | if ( ! function_exists( 'tutor_storefront_scripts' ) ) { |
| 16 | /** |
| 17 | * Enqueue Storefront theme compatibility scripts. |
| 18 | * |
| 19 | * @since 1.0.0 |
| 20 | */ |
| 21 | function tutor_storefront_scripts() { |
| 22 | $dir_url = plugin_dir_url( __FILE__ ); |
| 23 | wp_enqueue_style( 'tutor_storefront', $dir_url . 'assets/css/style.css', array(), tutor()->version ); |
| 24 | } |
| 25 | } |
| 26 |