How to speed up Sparke ?

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: not resolved
  • This topic has 4 replies, 3 voices, and was last updated 5 y, 3 mo by  Jacob.
Viewing 4 reply threads
  • Author
    Posts
    • #10408

      vuhuuduc
      Member

      Hi bro ,

      I really love this theme , i want to speed up this theme .So , i found a solution :

      i disable some theme features , but i don’t know how to disable some style and script theme (js,css) , For example :

      I want remove script :jquery.sharrre.min.js?ver=1.0

      Can you show me the snippet to remove above script.
      Thanks

    • #10409

      vuhuuduc
      Member

      i try to add this code to file custom-functions.php but it ‘s not working :

      //test diable some scripts but not working
      if(is_single())
      {
          function remove_single()
          {
                 
                  wp_dequeue_script('flexslider');
                  wp_deregister_script('jquery');
                  wp_deregister_style('animate');
                  wp_deregister_style('flexslider');
                  wp_dequeque_style('flexslider');
      	        
          }
      }
      add_action('wp_head', 'remove_single');
    • #10415

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #10420

      vuhuuduc
      Member

      Hi bro ,

      i tried but not 100% working , only Jquery is disabled , flexslider and animate styles still exists .

      Thanks.

    • #10509

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

Viewing 4 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.