skip to Main Content

SVG arent supported in new wordpress version

I have the new 5.8.1 wordpress, but svg in the media uploader aren't working anymore. I used this code to integrate svgs: function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'cc_mime_types'); Why is it not working?

VIEW QUESTION

Woocommerce Problem disabling the Add to Cart button for unregistered users

I use the following code in the functions.php file in the child theme: add_filter( 'woocommerce_variable_sale_price_html', 'update_price_html', 10, 2 ); add_filter( 'woocommerce_variable_price_html', 'update_price_html', 10, 2 ); add_filter( 'woocommerce_get_price_html','update_price_html', 9999, 2 ); function update_price_html( $html, $product ) { if(!is_user_logged_in()) { // Si…

VIEW QUESTION
Back To Top
Search