WP Favorite Posts
Feature Request: Toggle CSS classes for add/remove link (2 posts)

  1. Sammiikins
    Posted 4 years ago #

    This plugin is great! If I may suggest a very useful feature to add that should be quite easy to implement...

    I wanted to make it more user-friendly by using icons instead of text links. However there's nothing in the HTML to differentiate between the "Add" link and the "Remove" link so that they can be targeted separately with CSS - it would be nice if there was a CSS class somewhere that would toggle depending on the status.

    I'm not a plugin developer and I finally gave up trying to figure out if I could do this myself with PHP. If anyone knows a function or something that I can add without messing with the plugin files, that would be amazing.

    In the meantime, if anyone else is looking to do something similar, I finally found a workaround in the plugin website comments that does the trick for now:

    Ciprian says:
    27 November 2011 at 00:56

    Since I just did this, I might as well help Charlie out. Select “no image” and add html in the “Text for add link” option and do the same for the remove link.

    Who knew we could add HTML in the Label Settings? Not an ideal solution but it works for now. Also just noticed that this method adds the HTML to the link's 'title' attribute as well... yuck.


  2. Tech4Eleven
    Posted 3 years ago #

    perfect. thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Favorite Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic