Forums

[Plugin: Vote It Up] Widget top 10: use <li> instead of div? (2 posts)

  1. Anonymous
    Unregistered
    Posted 1 year ago #

    Hi, I like your plugin, only regret that the widget does not simply follow the sidebar css of my theme. Would be very nice to have a "list" version of the Most Popular Top 10 that looks like the other widgets, with vote count after the title between ( & ). I don't have enough coding skills to do it myself... hint! Thx! ;-)

  2. asmilewyt
    Member
    Posted 5 months ago #

    Hi there

    Depending on the vote it up skin you are using, open skin.php file in your skin folder. Mine is percent skin

    Replace

    <div class="votelistind"><div class="votemicro">'.$a[1][$i][0].'</div><span class="votemicrotext"><a href="'.$postdat->guid.'" title="'.$postdat->post_title.'">'.$postdat->post_title.'</a></span></div>

    with

    <li><a href="'.$postdat->guid.'" title="'.$postdat->post_title.'">'.$postdat->post_title.'</a></li>

    I deleted all span and div blocks then add a li tag there. You can change votewidget_skin class to ul,ol tag or wrap all list items with one of those tags in your sidebar template. It would be better to use css for vote widget block and don't modify source code too much for easy upgrade and maintenance.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags