Problem: I would like to wrap the text in my CRED form checkbox input label with a span tag so I can apply some custom CSS.
Solution: There is no public API to modify the markup of a checkbox label in a CRED form, so you would have to use some JavaScript to do this on the front-end:
jQuery(window).bind("load", function() { jQuery('.wpt-form-checkbox-label').contents().last().wrap( "<span></span>" ); });
Relevant Documentation:
https://api.jquery.com/contents/
https://api.jquery.com/last/
https://api.jquery.com/wrap/
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)
This topic contains 2 replies, has 2 voices.
Last updated by 6 years, 8 months ago.
Assisted by: Christian Cox.