Skip Navigation

[Gelöst] i want the "delete-post" link will be font awesome icon.

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
How to set delete post link with awesome font icon

Solution:
You should use 'fa-trash-o' class to display the delete icon.

Relevant Documentation:
http://fortawesome.github.io/Font-Awesome/get-started/

This support ticket is created vor 8 Jahre, 2 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 Antworten, has 3 Stimmen.

Last updated by shirlyk vor 8 Jahre, 2 Monate.

Assisted by: Minesh.

Author
Artikel
#365235

I am trying to: add a "delete post" icon with font-awesom

I expected to see: icon of a trash can (hidden link) that when click on it- the post in the loop is deleted.

#365239

You can do that if you have a Theme that successfully integrates / enqueues Font Awesome.

Then in your CRED Delete Post Link Short Code you can use the FontAwesome HTML.

Example:

[cred_delete_post_link class="cred-refresh-after-delete" text="<i class='fa fa-trash'></i>
" action="trash" message="Are you sure you want to delete this post?" message_show="1"]

Please do not hesitate to open a new thread if other issues or problems arise

DOC for CRED:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred-delete-post-link

Thank you

#365259

hi,
i'm using Toolset Starter, and i've added this line in the <head> section:
<link rel="stylesheet" href="hidden link">

as explained here: hidden link

but it still doesn't work...

#365381

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Beda on his national holiday. This is Minesh here and I'll take care of this ticket. Hope this is OK.

Could you please try to use following code:

[cred_delete_post_link class="cred-refresh-after-delete" text="<i class='fa fa-trash-o'></i>" message="Are you sure you want to delete this post?" message_after="Post deleted" message_show="1" action="trash"]
#366100

hi Minesh.
cool, it works!
how did you fix it? what should i do next time i want to add an icon?

thanx 🙂

#366170

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm really glad to hear that your issue is resolved.

There is a difference between class:

This is the code Beda sent to you:

<i class='fa fa-trash'></i>

This is the code I sent to you:

<i class='fa fa-trash-o'></i>

So if you notice the class name is different. To fix such issues next time, you should refer to following examples:
=> hidden link

Hope this resolves your issue and please open a new ticket for your each new question.

#366187

thanks Minesh!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.