WordPress.org

Ready to get started?Download WordPress

Forums

WP Favorite Posts
How do I insert 'favorite this' into this heart icon link code? (2 posts)

  1. Apposl
    Member
    Posted 1 year ago #

    Can anyone help me?

    I am trying to make this code 'favorite' the post via Favorite Posts plugin.

    <a class="btn btn-mini" href="<?php the_permalink(); ?>/#respond"><i class="icon-heart"></i> <?php _e('Love', 'ipin'); ?></a>

    Can anyone tell me what shortcode I put and where to make this functional?

    Thank you!

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

  2. dnnsldr
    Member
    Posted 8 months ago #

    You can code this using font awesome:

    <a href="<?php echo site_url(); ?>?wpfpaction=add&postid=<?php echo $post->ID ?>" class="heart-icon wpfp-link"><i class="icon-left fa fa-heart"></i>Favorite</a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.