Tagged: css, github, javascript
- This topic has 5 replies, 3 voices, and was last updated 8 years, 9 months ago by
badlydrawnrob.
-
AuthorPosts
-
-
April 3, 2013 at 2:13 pm #744
alex poslavskyMemberHi! 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.2As far as I can see I don’t use them, nor need them. Or did I do something wrong somewhere?
-
April 3, 2013 at 8:20 pm #745
SteveKeymaster@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');
}
} -
April 4, 2013 at 6:32 am #746
alex poslavskyMemberThat 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.
-
April 4, 2013 at 9:29 am #747
SteveKeymasterWe may decide to use Github in the future, but not now. If you want to contribute to Piklist, here’s how.
-
April 4, 2013 at 11:10 am #748
alex poslavskyMemberthanks
-
May 14, 2013 at 9:28 pm #825
badlydrawnrobMemberYeah I was wondering why Piklist was loading loads of files also. Good to know it’s easily fixed for now.
-
-
AuthorPosts
- You must be logged in to reply to this topic.