This support ticket is created 5 years, 4 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.
Hi. there is few lines of html comments created by the layout plugin i guess. is there any way to remove those ? i like my source code to be clean, third party remove html comment unable to remove this strangely.
Those HTML comments are added wrapped around the custom CSS and JS code, which is added through view's "CSS editor" and "JS editor" tabs, respectively.
Unfortunately, there is no filter or hook available to suppress or remove them, but if you'd prefer not to have them on your pages, you can remove any custom CSS and JS code that exists in your views and load them through third-party plugins like:
Hi ,
thanks for sharing the other approach. make sense as i already have those plugins.
is there anyway to disable toolset css, jss tabs when editing ? [so wont cause confusion]
how about if we can comment out some line in the code that generating this comments manually ,
i'm sure that i need to make this changes every time i update toolset.
If you're fine with the unrecommended approach of editing the core plugin files to remove those HTML comments, you'll find the multiple instances in the file:
wp-views/embedded/inc/wpv.class.php
(just search for the string "views-extra-css")
You'll find the code for that comment in the file:
wp-views/embedded/inc/views-templates/wpv-template.class.php
(just search for the string "Content Template:")
Note: to find specific strings or block of code, I use "NetBeans IDE" ( hidden link ) since it allows text search across the entire project. You can add specific plugin's folder as a project and then perform a search, as needed.