Title: [Plugin: WP Favorite Posts] Feature Request: Toggle CSS classes for add/remove link
Last modified: August 20, 2016

---

# [Plugin: WP Favorite Posts] Feature Request: Toggle CSS classes for add/remove link

 *  [Sammiikins](https://wordpress.org/support/users/sammiikins/)
 * (@sammiikins)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-feature-request-toggle-css-classes-for-addremove-link/)
 * 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](http://nxsn.com/projects/wp-favorite-posts/)
   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.
 * [http://wordpress.org/extend/plugins/wp-favorite-posts/](http://wordpress.org/extend/plugins/wp-favorite-posts/)

Viewing 1 replies (of 1 total)

 *  [Tech4Eleven](https://wordpress.org/support/users/tech4eleven/)
 * (@tech4eleven)
 * [13 years ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-feature-request-toggle-css-classes-for-addremove-link/#post-2809827)
 * perfect. thanks.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Favorite Posts] Feature Request: Toggle CSS classes for add/
remove link’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-favorite-posts.svg)
 * [WP Favorite Posts](https://wordpress.org/plugins/wp-favorite-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-favorite-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-favorite-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-favorite-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-favorite-posts/reviews/)

## Tags

 * [favorite](https://wordpress.org/support/topic-tag/favorite/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tech4Eleven](https://wordpress.org/support/users/tech4eleven/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/plugin-wp-favorite-posts-feature-request-toggle-css-classes-for-addremove-link/#post-2809827)
 * Status: not resolved