Using icons for your cred edit and delete links

The CRED shortcodes cred_link_form and cred_delete_post_link allow you to add links to edit/delete the current record in your view loops. The following shows an example Bookings list, with links for the user to edit/delete each booking post.

CRED edit links - text

We can easily replace the Edit and Delete text in our links just by setting the shortcode text attribute to the html for one of the WP Dashicons or Fontawesome icons (if you have Fontawesome installed).

In the image below, I’ve replaced the text links with the icon html.

CRED edit links - icons

You can see the code for the two links using both fontawesome and dashicons.

https://gist.github.com/caroig/26eff6ab8ddb5f6f28cf

Leave a Reply

You must be logged in to post a comment.