WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. renet
    Member
    Posted 1 year 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 1 year ago #

    I also need to add class to this link.

  3. solveigm
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.