Okay
  Public Ticket #391259
W3C validating errors
Closed

Comments

  • Tine started the conversation

    W3C validator is showing two errors for revolution slider:
    & did not start a character reference. (& probably should have been escaped as &.)
    as in
    /index.php?option=com_uniterevolution2&action=getcaptions" type="text/css" />

    Second error might be because of the first one:

    Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

     <style type="text/css">

    How can I resolve this issue, what file should I fix?
    Thank you!




  •   Max replied privately
  • Tine replied

    Hello, I have version 4.3.8 b3, the slider came with the template I bought. Should I contact the template provider for the latest version or can you provide?
    Thank you!


  •   Max replied privately
  • Tine replied

    Hello,
    I have received version 4.6 from the template provider but the problem persists. Can you tell me which file i need to manually alter to change & to &amp? I have searched a bit through files but with no luck yet. I have tried to disable the css file from loading but the location of css file is said as "?option=com_uniterevolution2&action=getcaptions" so I can't find it.
    Than you!

  •   Max replied privately
  • Tine replied

    Hello,
    I managed to fix the file and correct the issue, but the second part remains. The code causing problems is this:

    <style type="text/css">
    #rev_slider_1_1_wrapper .tp-loader.spinner3 div { background-color: #FFFFFF !important; }
    </style>

    Which is in the last line before of the end div of "rev_slider_1_1_wrapper".

    Do you know which file is calling this code so I can remove it?

    Thank you!

  • Tine replied

    Hello,

    With some digging I have actually managed to find the issue but I'm not sure if it's the right way.

    What I did was i commented the lines in revslider_output.class.php so that it looks like this:

    switch($use_spinner){
    case '1':
    case '2':
    // echo '<style type="text/css">'."\n";
    // echo ' #'.$this->sliderHtmlID_wrapper.' .tp-loader.spinner'.$use_spinner.'{ background-color: '.$spinner_color.' !important; }'."\n";
    // echo '</style>'."\n";
    break;
    case '3':
    case '4':
    // echo '<style type="text/css">'."\n";
    // echo ' #'.$this->sliderHtmlID_wrapper.' .tp-loader.spinner'.$use_spinner.' div { background-color: '.$spinner_color.' !important; }'."\n";
    // echo '</style>'."\n";
    break;
    case '0':
    case '5':
    default:
    break;

    }

    W3C validator shows no errors and the plugin work normally, but probably isn't the optimal solution. I wouldn't know because I'm really basic in programming. If you have any recommendations let me know, but I'll mark this ticket as closed.