WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. armorath
    Member
    Posted 5 years 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 5 years ago #

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

  3. mayalass
    Member
    Posted 5 years 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. Alex King
    Member
    Posted 5 years 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 5 years 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 5 years 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 5 years 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 5 years 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.

  9. shelleyeaster
    Member
    Posted 4 years ago #

    Thanks @stevemagruder, I added that into my CSS file and it worked.

  10. fredericsidler
    Member
    Posted 4 years ago #

    Alex, FYI I just downloaded and installed the plugin and this parameter is still in the code.

  11. rodlie
    Member
    Posted 4 years ago #

    @stevemagruder,
    Where in the theme's css file would I add the code you recommend? I'm pretty new to all this.

    Thanks.

  12. stevemagruder
    Member
    Posted 4 years ago #

    rodlie, you can add it anywhere separate from other CSS statements, but perhaps at the end of the file would be the most convenient.

Topic Closed

This topic has been closed to new replies.

About this Topic