Forums

[Plugin: Popularity Contest] How do I hide the % in Widget? (8 posts)

  1. armorath
    Member
    Posted 4 months ago #

    Hello, I'm using the default widget that come swith popularity Contest but I don't wish to show each posts % in the list, I'd rather just a list of the most popluar posts.

    Is there a way to remove that %?

    check out http://tcspeak.com to see what I mean (int he footer).

    thanks

  2. centepines
    Member
    Posted 4 months ago #

    Same here. I already set 'no' at the settings page - but percentages are still showing.

  3. mayalass
    Member
    Posted 4 months ago #

    I believe the 'no' setting on the settings page is for % displayed at the end of each post, not for within the widget list.

    I, too, however, would really like to get those %# out of the widget list. It looks cluttered and takes up two lines per item instead of one. I'd much prefer to just have a list of post titles without the %. Is there any way to accomplish this?

  4. alexkingorg
    Member
    Posted 4 months ago #

    I'll remove this in the next release. Didn't intend to have it in there, it was a side-effect of cleaning up a bunch of code. :)

  5. sara3903
    Member
    Posted 3 months ago #

    Hey Alex- I just installed your widget at Recessionwire.com and love it. (But not the score showing.) So there's no simple way to hide it--like removing some code? And when is the next release? Thanks!

  6. rmartone
    Member
    Posted 2 months ago #

    Hey everyone - I red of the % and ranking on the widget.
    Go into popularity-contest.php and change line 1484 from

    '<span>'.$this->get_post_rank(null, $item->total).'</span>ID).'">'.$item->post_title.''.

    to

    'ID).'">'.$item->post_title.''.

    no longer shows the rank and % symbol.

  7. rmartone
    Member
    Posted 2 months ago #

    Let me try that again

    1484 from
    '<span>'.$this->get_post_rank(null, $item->total).'</span><a href="'.get_permalink($item->ID).'">'.$item->post_title.'</a>'.

    to
    '<a href="'.get_permalink($item->ID).'">'.$item->post_title.'</a>'.

    Sorry

  8. stevemagruder
    Member
    Posted 2 months ago #

    In your theme's CSS file, you could add:

    .akpc_report span {
      display: none;
    }

    This will take away the percentage without having to change the plugin code.

Reply

You must log in to post.

About this Topic