antona-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
disable code
Started by: antona-2 in: Toolset Professional Support |
2 | 3 | 7 months, 3 weeks ago | ||
disable code
Started by: antona-2 in: Toolset Professional Support |
1 | 1 | 7 months, 3 weeks ago | ||
How can I disable unnecessary code that the toolset inserts without my permission
Started by: antona-2
in: Toolset Professional Support
Problem: Toolset injects some code automatically in the site for Views and Blocks, and I would like to know how to dequeue that code. Solution: The Toolset Blocks script frontend.js isn’t enqueued normally, an inline script is added to the page to load the script asynchronously. This can be disabled by adding the following constant to wp-config.php: define( 'TB_SCRIPT_STYLE_LAZY_LOAD', false ); Then the script itself and accompanying stylesheet can be dequeued normally as desired, like so: add_action( 'wp_print_scripts', 'ts_debug_scripts' ); function ts_debug_scripts( $handles ){ wp_dequeue_script( 'toolset-blocks' ); wp_deregister_style('toolset-blocks'); } |
2 | 8 | 3 years, 5 months ago | ||
can't remove from code – views-extra-css
Started by: antona-2 in: Toolset Professional Support |
2 | 3 | 4 years, 11 months ago |