How instal more css file to more page?
-
hi
I want
index.css => only for index.php
newstext.css => only for single.php
and
index.js => only for index.php
newstext.js => only for single.phpfunction et_load_samtemehr_scripts() { $template_dir = get_template_directory_uri(); $theme_version = et_get_theme_version(); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_script( 'samtemehr-superfish', $template_dir . '/js/jquery.cookie.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-fitvids', $template_dir . '/js/jquery.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-index-min', $template_dir . '/js/index.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-flexslider', $template_dir . '/js/jquery.flexslider.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-bootstrap', $template_dir . '/js/bootstrap.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_style( 'samtemehr-bootstrap', $template_dir . '/css/bootstrap.min.css' ); wp_enqueue_style( 'samtemehr-index-min', $template_dir . '/css/index.min.css', $theme_version, true); wp_enqueue_style( 'samtemehr-iconic-font', $template_dir . '/css/iconic.min.css', $theme_version, true);
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How instal more css file to more page?’ is closed to new replies.