Skip Navigation

[Resolved] dequeue layout plugin scripts on certain pages only

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 6 replies, has 2 voices.

Last updated by Nicholas 6 years, 2 months ago.

Author
Posts
#1108289

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

#1108553

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.

#1108766

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

#1108773

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

#1108778

Got it is_home()

Why do you say "It is not supported or possible to dequeue scripts of Toolset" ?

#1108805

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.

#1108840

Ok, thanks