WordPress.org

Ready to get started?Download WordPress

Forums

WP Favorite Posts
Favorite with custom image (2 posts)

  1. ivancandle
    Member
    Posted 5 months ago #

    Hi,
    I need to upload my own image to the Favorite button, but without text, image only. And make that image the link itself.
    How can I do that?

    I've tried "Custom image URL" and no text in "Text for add link" but it shows the image without a link.

    Thanks,
    Ivan

    https://wordpress.org/plugins/wp-favorite-posts/

  2. nijip
    Member
    Posted 4 months ago #

    Hi Ivan.
    This is how i did it.
    I select the no image setting and then add the image via HTML into the "Text for add link" and "Text for remove link" sections. This allows me to have different images for a favorited and non favorited post. You can also change the colour of the each doing it this way too.

    Here's an example using Font Awesome Icons with the second link changing colour.

    <i class="fa fa-plus-square"></i> Add to favorites

    <p style="color:#428BCA"><i class="fa fa-minus-square"></i> Remove from favourites</p>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.