This support ticket is created vor 4 Jahren, 1 Monat. 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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
How can I use a shortcode in the link of a toolset button?
if I simply insert this, the url of the current page will always be placed in front of you.
Example see pictures.
A workaround is to check on the frontend what is the class that is generated for the cred shortcode and then use CSS to style this in the form of a button.
I would suggest having a look at the link below. versteckter Link
This is no coding because we generate a Link. If you need to style that link you will need to use some HTML and CSS.
Secondly here
<p><a href="[cred_delete_post_link action="trash" text="Löschung %TITLE%" message="Sind Sie sicher, dass dieses Mitglied gelöscht werden soll?" message_show="1" redirect='1215' class="cred-refresh-after-delete"]">Löschen</a></p>
You aren't able to add the shortcode into the anchor tag as a link because the shortcode already generates the link in an anchor tag.
What you should be doing is this.
[cred_delete_post_link action="trash" text="Löschung %TITLE%" message="Sind Sie sicher, dass dieses Mitglied gelöscht werden soll?" message_show="1" redirect='1215' class="cred-refresh-after-delete"]
I see you have the class "cred-refresh-after-delete"
You can Style you link by using this class with css.
Please let me know if this is a bit clearer for you.
How to create an anchor-tag with css is not the problem.
I also know where I can find the CSS option in Pages, Layouts and Vies.
But there I can only enter the class name (see picture).
My basic problem is this:
In a frontent template I want several buttons that should look the same (new post, edit post, delete post).
For new post and edit post, I can use the toolset button, as a URL link works here. Only shortcode works for delete post.
Therefore I would like to recreate the appearance of the button for the shortcode [cred-delete-post].
That's why I used css, which also works with plain text. I assigned the same css to [cred-delete-post], but unfortunately it doesn't work here (see picture).
How can I make the button for delete post look the same as the other buttons (include icon)?