WordPress.org

Forums

WP Favorite Posts
Adding class to add/remove link (3 posts)

  1. renet
    Member
    Posted 2 years ago #

    Hey,

    I've added a class to the add/remove link for css styling perposes.

    I changed the line 155 in wp-favorite-posts.php from

    $link = "<a class='wpfp-link' href='?wpfpaction=".$action."&postid=". $post_id . "' title='". $opt ."' rel='nofollow'>". $opt ."</a>";

    to

    $link = "<a class='wpfp-link ".$action."' href='?wpfpaction=".$action."&postid=". $post_id . "' title='". $opt ."' rel='nofollow'>". $opt ."</a>";

    It would be great if you could use this code in your plugin, so I don't always have to fix it, when updating the plugin. Thank you!

    Regards,
    René

    http://wordpress.org/extend/plugins/wp-favorite-posts/

  2. renathy
    Member
    Posted 2 years ago #

    I also need to add class to this link.

  3. solveigm
    Member
    Posted 2 years ago #

    If you copy the edited file to your theme folder, it isn't affected by updates, and you don't have to change it every time you update.

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

Tags

No tags yet.