get('Version')); //Sass compiles styles. Will get child's theme version if found instead. Child theme should import with sass. wp_enqueue_style('aspace-sass-styles', get_theme_file_uri('/dist/cat' . $suffix . '.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('aspace-css-styles', get_theme_file_uri('/dist/frontEnd' . $suffix . '.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('aspace-sass-styles', get_theme_file_uri('/dist/main' . $suffix . '.css'), '', wp_get_theme()->get('Version')); wp_enqueue_script('select2-mn', get_template_directory_uri() . '/js/select2.min.js', 'jquery', '', true); wp_enqueue_script('select2-m', get_template_directory_uri() . '/js/select2.js', 'jquery', '', true); wp_enqueue_script('autopbar', get_template_directory_uri() . '/js/autotopbar.js', 'jquery', '', true); wp_enqueue_script('scrollprogress', get_template_directory_uri() . '/js/scrollProgress.js', 'jquery', '', true); wp_enqueue_script('scrollmagic', get_template_directory_uri() . '/js/ScrollMagic.js', 'jquery', '', true); wp_enqueue_script('aos-js', get_template_directory_uri() . '/js/aos.js', 'jquery', '', true); wp_enqueue_script('imageloadedjs', get_template_directory_uri() . '/dist/imagesloaded.pkgd.min.js', 'jquery', '', true); wp_enqueue_script('gridjssa', get_template_directory_uri() . '/js/magnific-popup.js', 'jquery', '', true); //wp_enqueue_script('stickysidebar', get_template_directory_uri() . '/js/sticky-sidebar.js', 'jquery', '', true); wp_enqueue_script('stickysidebar-min', get_template_directory_uri() . '/js/sticky-sidebar.min.js', 'jquery', '', true); wp_enqueue_script('polyfill', get_template_directory_uri() . '/js/polyfill.min.js', 'jquery', '', true); wp_enqueue_script('nicescroll', get_template_directory_uri() . '/js/jquery.nicescroll.min.js', 'jquery', '', true); wp_enqueue_script('modernizer', get_template_directory_uri() . '/js/direction-reveal.js', 'jquery', '', true); wp_enqueue_script('modern', get_template_directory_uri() . '/js/bundle.js', 'jquery', '', true); wp_enqueue_script('samplejs', get_template_directory_uri() . '/js/sample.js', 'jquery', '', true); wp_enqueue_style('aspace-style', get_stylesheet_uri(), array(), ''); wp_style_add_data('aspace-style', 'rtl', 'replace'); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } /* wp_enqueue_style('component-ss2', get_theme_file_uri('/dist/map/cttm-styles.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('component-ss3', get_theme_file_uri('/dist/map/leaflet-search.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('component-ss5', get_theme_file_uri('/dist/map/leaflet.fullscreen.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('component-ss6', get_theme_file_uri('/dist/map/MarkerCluster.css'), '', wp_get_theme()->get('Version')); */ wp_enqueue_style('component-sss', get_theme_file_uri('/dist/popup.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('cat-sss', get_theme_file_uri('/dist/direction-reveal.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('overlay-sss', get_theme_file_uri('/dist/direction-reveal-product.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('main-sss', get_theme_file_uri('/dist/main-custom.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('blog-sss', get_theme_file_uri('/dist/blog_layouta.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('sliders', get_theme_file_uri('/dist/sliders.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('styles', get_theme_file_uri('/dist/styles.css'), '', wp_get_theme()->get('Version')); //wp_enqueue_style('microtip', get_theme_file_uri('/dist/microtip.css'), '', wp_get_theme()->get('Version')); //wp_enqueue_style('demos', get_theme_file_uri('/dist/demos.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('aos-css', get_theme_file_uri('/dist/aos.min.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('bootstrap-2', get_theme_file_uri('/dist/bootstrap.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style( 'aspace-design-styles', get_theme_file_uri( '/dist/frontEnd.css' ), '', wp_get_theme()->get( 'Version' ) ); //wp_enqueue_style( 'owl-carousel-css', get_template_directory_uri() . '/dist/owl.carousel.css', '', wp_get_theme()->get( 'Version' ) ); //wp_enqueue_script('swiper', get_template_directory_uri() . '/js/swiper-bundle.js', 'jquery', '', true); //wp_enqueue_script( 'priceformat', get_template_directory_uri().'/js/jquery.priceformat.min.js', 'jquery', '', true); //wp_enqueue_style('swiper-cs', get_theme_file_uri('/dist/swiper-bundle.css'), '', wp_get_theme()->get('Version')); /* wp_enqueue_style('single-property', get_theme_file_uri('/dist/single-property.min.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('cat-property', get_theme_file_uri('/dist/cat-property.css'), '', wp_get_theme()->get('Version')); */ wp_enqueue_style('vertical-menu', get_theme_file_uri('/dist/bootstrap-vertical.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('wooone', get_theme_file_uri('/dist/woo.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('wooonene', get_theme_file_uri('/dist/woo1.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('wootwo', get_theme_file_uri('/dist/woo2.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-menu', get_theme_file_uri('/dist/woo-menu.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('single', get_theme_file_uri('/dist/single.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('content', get_theme_file_uri('/dist/content.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-menu-filter2', get_theme_file_uri('/dist/woo-menu-filter1.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-menu-filter3', get_theme_file_uri('/dist/woo-menu-filter2.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-menu-filter', get_theme_file_uri('/dist/woo-menu-filter.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-rating', get_theme_file_uri('/dist/rating.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-colors', get_theme_file_uri('/dist/colors.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-product', get_theme_file_uri('/dist/product.css'), '', wp_get_theme()->get('Version')); // wp_enqueue_style('woo-body', get_theme_file_uri('/dist/body.css'), '', wp_get_theme()->get('Version')); // wp_enqueue_style('woo-columns', get_theme_file_uri('/dist/columns.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woo-nav', get_theme_file_uri('/dist/woo-nav.css'), '', wp_get_theme()->get('Version')); //dont work as expected woo gallery // wp_enqueue_style('woo-gallery', get_theme_file_uri('/dist/woo-gallery.css'), '', wp_get_theme()->get('Version')); //if( function_exists('is_shop') && is_shop() || ( function_exists('is_product') && is_product()) || ( function_exists('is_woocommerce') && is_woocommerce()) ? 'product' : ''){ wp_enqueue_style('woo-commerce', get_theme_file_uri('/dist/woo-commercce.css'), '', wp_get_theme()->get('Version')); wp_enqueue_style('woocommerce', get_theme_file_uri('woocommerce.css'), '', wp_get_theme()->get('Version')); // } //wp_enqueue_style('default-sss', get_theme_file_uri('/dist/css/default.css'), '', wp_get_theme()->get('Version')); } add_action('wp_enqueue_scripts', 'aspace_scripts');