Jump to content

Product comments stars not aligned and working bad


Recommended Posts

Hi everybody,

 

I have a problem with the module productcomments in only one site, if you try to leave a review to a product i.e.:
http://www.ilregallo.com/prodotti-a-base-di-riso/339-cuor-di-riso-ai-fichi-5x200g-8018699011254.html

(the button is named "Scrivi una recensione") yuo will see that the stars are not aligned and working bad.

If you inspect the page you will see that the html is:
 


<li>
    <label>Quality:</label>
    <div class="star_content">
        <div class="radio"><span><input type="hidden" name="criterion[1]" value="4"><div class="cancel"><a title="Cancel Rating"></a></div><div class="star"><a title="1">1</a></div></span>
        </div>
        <div class="radio"><span><div class="star star_hover"><a title="2">2</a></div></span>
        </div>
        <div class="radio"><span><div class="star"><a title="3">3</a></div></span>
        </div>
        <div class="radio"><span class="checked"><div class="star star_on"><a title="4">4</a></div></span>
        </div>
        <div class="radio"><span><div class="star"><a title="5">5</a></div></span>
        </div>
    </div>
    <div class="clearfix"></div>
</li>

As you can see is a little bit messed up, look where the cancel is located, in the same div of the first star.
It seems that is the jquery rating plugin that messed up the code...
On another site the html of the same code (but this time is right) is:
 

<li>
    <label>Valutazione:</label>
    <div class="star_content">
        <input type="hidden" name="criterion[1]" value="3">
        <div class="cancel">
            <a title="Cancel Rating"></a>
        </div>
        <div class="star star_on"><a title="1">1</a>
        </div>
        <div class="star star_on"><a title="2">2</a>
        </div>
        <div class="star star_on"><a title="3">3</a>
        </div>
        <div class="star"><a title="4">4</a>
        </div>
        <div class="star"><a title="5">5</a>
        </div>
    </div>
    <div class="clearfix"></div>
</li>

Where there is no class="radio"...

Link to comment
Share on other sites

×
×
  • Create New...