This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to dequeue the
/sitepress-multilingual-cms/dist/css/blocks/styles.css
file because you do not use the blocks editor on your website and wish to optimize your site by removing it. However, you encountered a warning about the missing
wpml-blocks
style.
Solution:
We recommend adding the following code to your theme's functions.php file to dequeue the
wpml-blocks
style:
add_action('wp_enqueue_scripts', 'test_remove_style', 11, 2); function test_remove_style() { wp_dequeue_style('wpml-blocks'); }
If this solution does not seem relevant to your issue, please open a new support ticket with us.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 3 replies, has 2 voices.
Last updated by 1 year, 6 months ago.
Assisted by: Christopher Amirian.