Hello I am able to dequeue scripts and styles on certain pages only. But I can't quite dequeue toolset scripts and styles on certain pages.
Please help.
A list of the style and script ids would help.
Regards,
Nick
I was able to find all ids except for <script type='text/javascript' src='/wp-content/uploads/ddl-layouts-tmp/b33dadb29e6b2364d044c07d48eb17c0.js'></script> and the toolset inline styles and scripts.
I'll use my child seems stylesheet and js.js rather then toolset inline css and scripts so I'd like to remove that as well.
It is not supported or possible to dequeue scripts of Toolset.
Toolset loads the scripts it needs, where it needs them and when it needs them, and dequeueing them will create issues that we cannot assist (such as Views with AJAX not working, for example)
We are however working on major adjustements on this, oriented on:
- avoid to load styles or scripts when not needed.
- if needed, load them in a way that does not impact performance
- add a filter for advanced users to do exactly what you reuquest
Some of these features will be adde to the future releases
Thanks.
How do I determine if the current page is the blog/post archive?
is_page('blog') does not seem to work for me.
Regards,
Nick
Got it is_home()
Why do you say "It is not supported or possible to dequeue scripts of Toolset" ?
We cannot assist custom code requests such as explaining how to get the current page or home URL in WordPress or PHP.
The Forum is for Toolset Techincal and How To Issues.
I would suggest to consult PHP and WordPress Codex and their Forums for similar questions as your last:
https://codex.wordpress.org/
https://codex.wordpress.org/Theme_Development
https://codex.wordpress.org/Function_Reference
The Styles and Scripts by Toolset should not and cannot be removed, if you want a "functioning" plugin.
We cannot assist this, we did however acknowledge the request as outlined previously:
https://toolset.com/forums/topic/dequeue-layout-plugin-scripts-on-certain-pages-only/#post-1108766
These things are as stated already in the works and will be part of future releases.