Hi,
I’d really like to remove some of the unused scripts when the theme loads.
I have disabled the slider in the theme settings, but the slider script still loads on the blog.
Can you help?
Remove unused scripts
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Pål
Thanks for reaching out. This is something can be achieved quite easily. I made a child theme for you but I see you’re already using one so you can just check out what I’ve done in the second function here:
https://github.com/siteorigin/vantage-child/blob/feature/dequeue-flexslider/functions.php
This needs to be carried out in the functions.php file of your child theme.
Hope that helps. Let me know how you come along.
This is a private message.
Forgot to wrap:
Functions
If possible, please paste a copy of your functions file here, wrapped in code tags as indicated below the comment field. If your child functions is really long you could use http://codepen.io/ or similar site to paste the code and send through a link.
Widget Areas
If you’re registering a new widget area in the child functions then that would have been something added on your side. ayurfoods is the textdomain. It should read ‘vantage’. You can refer to the vantage_widgets_init function in the parent functions.php file for a reference on adding widget areas.
This is a private message.
Thanks, I see the problem. In 2.3.3 the script handle was different. Please change:
to just:
Ok, I’ve changed as described, but
still appears in header?
Thanks for the feedback. If possible, please send through a zip copy of your child theme to [email protected] and I’ll dive in deeper.