Home Forums WoodMart support forum Remove from (w3 validator error)

Remove from (w3 validator error)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #318719

    Xristos
    Participant

    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.
    #318758

    Artem Temos
    Keymaster

    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

    #318760

    Xristos
    Participant

    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!

    #318768

    Artem Temos
    Keymaster

    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);

    #318780

    Xristos
    Participant

    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!

    #318789

    Artem Temos
    Keymaster

    Try to find and remove this code from the plugin wp-content\plugins\revslider\public\revslider-front.class.php file.

    #318797

    Xristos
    Participant

    Perfect 🙂

    I just comment at line 150 the following code

    $custom_css = (trim($custom_css) == '') ? '#rs-demo-id {}' : $custom_css;

    And work!

    Thank you 😀

    #318815

    Artem Temos
    Keymaster

    Great, you are welcome! Let me know if you have any further questions.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Remove from (w3 validator error)’ is closed to new replies.