Navigation überspringen

[Gelöst] How to add link to inline field in paragraph block

This support ticket is created vor 3 years, 10 months. 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.

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

Zeitzone des Unterstützers: America/Jamaica (GMT-05:00)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von davidW-32 vor 3 years, 10 months.

Assistiert von: Shane.

Author
Artikel
#2420045

I use dynamic sources in paragraph blocks; e.g. an @ symbol from fontawesome and then a website taken from dynamic sources.

Here is an HTML sample:
<p><i class="fas fa-at">
<span data-provider="__current_post" data-source="toolset_custom_field|feldgruppe-sample" data-field="website" data-uniqueid="5" class="tb-inline-field">versteckter Link;

I want to have the website as link of course, so how can I add the link to the dynamic website text "versteckter Link"?

#2420225

Shane
Unterstützer

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi David,

Thank you for getting in touch.

When you say Dynamic Link text are you referring to the link name being changed per post being viewed?

This below seems to be generated by our Toolset Single Field Block.

<p><i class="fas fa-at">
<span data-provider="__current_post" data-source="toolset_custom_field|feldgruppe-sample" data-field="website" data-uniqueid="5" class="tb-inline-field"><em><u>versteckter Link</u></em>;

Please let me know if this link will be between texts.
Thanks,
Shane

#2420517

Hi Shane,

I could use the Toolset Single Field Block for the website field (dynamic sources), but I want an icon from fontawesome to be shown before the website field: <fontwesome icon> <website field> and the website field content should be displayed as a link. Is this possible with Toolset Single Field Block?
I thought that this is not possible, that is why I used a standard paragraph block as shown in the html above. Problem with this approach is that the website field content is not displayed as a link, but just as simple text.
What do you suggest?

#2420861

Shane
Unterstützer

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi David,

In that case you may need to do it manually like below.

<em><u>versteckter Link</u></em>

Replace 'my-field' with the slug of your custom field that has the url.

Thanks,
Shane

#2420957

My issue is resolved now. This is exactly what I needed! Great job! Thank you!