The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Request: add custom class input field for all fields when using the form editor
Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 19, 2021 9:34 pm
(@adamtheforumuser)
Estimable Member
Joined: 5 years ago
This would be really useful so that an install can quickly inherit the styles of a theme's general CSS.
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 20, 2021 12:25 pm
(@asti)
Illustrious Member
Joined: 8 years ago
@adamtheforumuser ,
Don't follow you well. Each filed created by you has it's own class and ID. See the example shown in the screenshot:
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 20, 2021 3:45 pm
(@adamtheforumuser)
Estimable Member
Joined: 5 years ago
What I was requesting was that in the form creation, you can define a css class. Then that CSS class would be added to the class attribute on the field when it is rendered.
This would have the advantage that you can use existing css classes and make zero changes to your css.
For example, you have a class existing in your website called .btn that does lots of styling to buttons. In the form creation interface you'd then add "btn" as a custom class and as if by magic with no site code changes required the buttons on the form would then inherit the standard button style.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8300
Mar 20, 2021 4:28 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
You can do it using jQuery .addClass() function.
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Mar 20, 2021 4:34 pm
(@adamtheforumuser)
Estimable Member
Joined: 5 years ago
Yes sure. It was just a request to have this in your interface for someone that doesnt want to/know how to do it in code. Ie someone that literally wants to just install the plugin and get it setup using existing CSS classes very quickly with no coding required.
Super Globals
Options and Features