Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set up the content width value based on the theme's design and stylesheet.
- if ( ! isset( $content_width ) )
- $content_width = 625;
- // for javascript jaquery enable into the site from wordpress
- function my_scripts_method_tshirt() {
- wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', '1.0');
- wp_enqueue_script( 'jquery' );
- // wp_enqueue_script( 'jquery-masonry', array( 'jquery' ), '20140711', true );
- }
- add_action('wp_enqueue_scripts', 'my_scripts_method_tshirt');
- // Registered Enqueue Styles & Scripts
- function mostra_scripts_styles() {
- global $wp_styles;
- /*
- * Adds JavaScript to pages with the comment form to support
- * sites with threaded comments (when in use).
- */
- if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
- wp_enqueue_script( 'comment-reply' );
- /**********************************************************************************************/
- //Registering styles
- wp_register_style( 'search-form-css', get_template_directory_uri() .'/css/css/search-form.css', array( '' ), '1.0.0', true );
- wp_register_style( 'comments-css', get_template_directory_uri() .'/css/comments.css', array( '' ), '1.0.0', true );
- /**********************************************************************************************/
- // Enqueue styles
- wp_enqueue_style( 'search-form-css', get_stylesheet_uri(), array( '' ), '1.0.0', true );
- wp_enqueue_style( 'comments-css', get_stylesheet_uri(), array( '' ), '1.0.0', true );
- /**********************************************************************************************/
- // Loads our main stylesheet.
- wp_enqueue_style( 'mostra-style', get_stylesheet_uri() );
- /**********************************************************************************************/
- // Registered Enqueue Scripts
- wp_enqueue_script( 'mixitup-min-js', get_template_directory_uri() . '/js/jquery.mixitup.min.js', array( 'jquery' ), '20140711', true );
- wp_enqueue_script( 'main-js', get_template_directory_uri() . '/js/main.js', array( 'jquery' ), '20140711', true );
- /**********************************************************************************************/
- }
- add_action( 'wp_enqueue_scripts', 'mostra_scripts_styles' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement