Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Theme functions and definitions.
- * This child theme was generated by Merlin WP.
- *
- * @link https://developer.wordpress.org/themes/basics/theme-functions/
- */
- /*
- * If your child theme has more than one .css file (eg. ie.css, style.css, main.css) then
- * you will have to make sure to maintain all of the parent theme dependencies.
- *
- * Make sure you're using the correct handle for loading the parent theme's styles.
- * Failure to use the proper tag will result in a CSS file needlessly being loaded twice.
- * This will usually not affect the site appearance, but it's inefficient and extends your page's loading time.
- *
- * @link https://codex.wordpress.org/Child_Themes
- */
- function rubenz_child_enqueue_styles() {
- wp_enqueue_style( 'rubenz-style', get_template_directory_uri() . '/style.css' );
- wp_enqueue_style(
- 'rubenz-child-style',
- get_stylesheet_directory_uri() . '/style.css',
- array( 'rubenz-style' ),
- wp_get_theme()->get( 'Version' )
- );
- // unload Elementor's Swiper
- wp_deregister_script( 'swiper' );
- // load Rubenz Swiper
- wp_enqueue_style( 'swiper', ARTS_THEME_URL . '/css/swiper.min.css', array(), '4.5.0' );
- wp_enqueue_script( 'swiper', ARTS_THEME_URL . '/js/swiper.min.js', array( 'jquery' ), '4.4.1', true );
- }
- add_action( 'wp_enqueue_scripts', 'rubenz_child_enqueue_styles', 50 );
Add Comment
Please, Sign In to add comment