Viewing 1 reply thread
  • Author
    Posts
    • #682

      My current theme is already using jQuery UI and with my own styling. I just realised the jquery-ui.smoothness.css that is loaded on the front end is interfering with my form layouts. How would I go about removing it from the front-end only?

    • #683
      Steve
      Keymaster

      In class-piklist-form.php, we enqueue the style:
      wp_enqueue_style('jquery-ui-core');
      to remove, add this to your functions.php file:
      wp_dequeue_style('jquery-ui-core');

      If you want to remove it on the frontend only, something like this should work (untested):
      function my_scripts()
      {
      wp_dequeue_style('jquery-ui-core');
      }
      add_action('wp_enqueue_scripts','my_scripts',99);

Viewing 1 reply thread
  • You must be logged in to reply to this topic.