Remove from (w3 validator error)
-
Hello,
This is the last error that I should fix when I check the website with https://validator.w3.org/nu/
I need help to remove the <style inside of the body. I know that is from slide revolution but I didn’t find how I remove it.
Here is the code I wanna remove
<style id="rs-plugin-settings-inline-css" type="text/css">
#rs-demo-id {}
</style>
See attach images
Attachments:
You must be
logged in to view attached files.
Hello,
This particular style tag comes with the Slider revolution and we can’t remove it in our theme. As you can see, its ID starts with rs-plugin
.
Kind Regards
Hello,
This is the last error from W3 validator, I have to fix it somehow.
There will always be a way, even manually.
Just I need a little guidance.
Thank you!
Try to add the following line to the functions.php in your child theme. Note that it may break something in Slider Revolution functionality but should remove this inline style.
remove_action('wp_footer', array('RevSliderFront', 'add_inline_css'), 10);
I add it into function.php in my child theme but didn’t remove the inline style.
Ofc I delete the cache, check it into Incognito mode and also check it at https://validator.w3.org/nu/
Can we try something else, please? 🙂
I appreciate your help!
Try to find and remove this code from the plugin wp-content\plugins\revslider\public\revslider-front.class.php
file.
Perfect 🙂
I just comment at line 150 the following code
$custom_css = (trim($custom_css) == '') ? '#rs-demo-id {}' : $custom_css;
And work!
Thank you 😀
Great, you are welcome! Let me know if you have any further questions.
The topic ‘Remove from (w3 validator error)’ is closed to new replies.