Tagged: , ,

Viewing 5 reply threads
  • Author
    Posts
    • #744

      Hi! I was wondering why the following two files are added to the frontend of my site:

      plugins/piklist/parts/js/pik.js?ver=3.5.1
      plugins/piklist/parts/css/jquery-ui/jquery-ui.smoothness.css?ver=1.9.2

      As far as I can see I don’t use them, nor need them. Or did I do something wrong somewhere?

    • #745
      Steve
      Keymaster

      @alex poslavsky– They are used by forms, and we need to do a better job of only loading them when needed.

      You can remove them from the frontend with this code. Just place in functions.php:
      add_action('wp_enqueue_scripts', 'remove_piklist_from_frontend', 99);
      function remove_piklist_from_frontend()
      {
      if(!is_admin())
      {
      wp_dequeue_style('jquery-ui-core');
      wp_dequeue_script('piklist-plugin');
      }
      }

    • #746

      That was surprisingly easy. Thanks. I added:

      wp_dequeue_script('jquery-timepicker');

      as well.

      Small side-question: are there any plans to move development to git(hub)? It would make it easier for others to see what is happening in the code-base, and maybe to send pull-requests.

    • #747
      Steve
      Keymaster

      We may decide to use Github in the future, but not now. If you want to contribute to Piklist, here’s how.

    • #748

      thanks

    • #825

      Yeah I was wondering why Piklist was loading loads of files also. Good to know it’s easily fixed for now.

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