Navigation überspringen

[Gelöst] How to style options in cred_field by format tag or similar?

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

Problem: I would like to customize the design of each option in a cred_field, similar to the "format" attribute for a custom search field in Views.

Solution: The best way to apply custom styles to a form field is to use a generic field.

Relevant Documentation:
https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/

This support ticket is created vor 6 Jahren, 2 Monaten. 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

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

Zuletzt aktualisiert von a.R vor 6 Jahren, 2 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1136644

a.R

Hi,
I would like to show the options of a cred_field more compact, as I did in the search form on the left of this site.
To do this, I added divs around the category contents in the wpv-control using the format-tag:

[wpv-control taxonomy="tausch-tatigkeit" url_param="zutun" type="checkboxes" taxonomy_orderby="term_group" hide_empty="false" format="<div>%%NAME%%</div>"]

How can I do this in cred forms?

THANK YOU, regards

#1136971

Hi, there's not an easy way to apply custom markup to each option in a cred_field shortcode. The best way to create your own custom field markup is with generic fields. Then you can use the Forms API to capture the values of those generic fields on the backend. More information about generic fields: https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/

#1139105

a.R

Ok, thank you! 🙂