Tiny MCE editor stripping xlink:href parameter from SVG USE tag

[*] I have an inline SVG tag with an embedded <USE> tag. HTML: <ul> <li><svg class=”icon-user”><use xlink:href=”#icon-user”></use></svg> My Account</li> </ul> I have created a filter function to force the Tiny MCE editor to leave SVG tags alone. The code was adapted from post: use of <svg> tag into wordpress. Filter function: add_filter( ‘tiny_mce_before_init’, ‘fb_tinymce_add_pre’ ); … Read more

SVG fill color transparency / alpha?

Is it possible to set a transparency or alpha level on SVG fill colours? I’ve tried adding two values to the fill tag (changing it from fill=”#044B94″ to fill=”#044B9466″), but this doesn’t work. 7 s 7 You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 … Read more

Cant upload SVG files after updating WordPress 4.7.1 [duplicate]

This question already has answers here: SVG files not uploading since most recent WP update (3 answers) Closed 5 years ago. I updated WordPress to 4.7.1 and cant upload SVG anymore. I had a function in my functions.php file function cc_mime_types($mimes) { $mimes[‘svg’] = ‘image/svg+xml’; return $mimes; } add_filter(‘upload_mimes’, ‘cc_mime_types’); but it also dont help … Read more

img src SVG changing the styles with CSS

html <img src=”https://stackoverflow.com/questions/24933430/logo.svg” alt=”Logo” class=”logo-img”> css .logo-img path { fill: #000; } The above svg loads and is natively fill: #fff but when I use the above css to try change it to black it doesn’t change, this is my first time playing with SVG and I am not sure why it’s not working. 25 … Read more

What are the different usecases of PNG vs. GIF vs. JPEG vs. SVG? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago. Improve this question When should certain image file types be used when building websites or interfaces, etc? What … Read more