Problem: I would like to adjust the width of a datepicker input field in a Form, but the CSS I'm using does not seem to work.
Solution:
Datepicker fields are more complex than other text-based input fields, and you'll probably have to override multiple other styles. The max-width attribute is one of those styles. For example:
input[name="wpcf-fieldslug[display-only]"].hasDatepicker{ max-width:200px; }
Use the browser's development tools to inspect the field and determine which overrides are necessary.
Relevant Documentation:
https://css-tricks.com/debugging-tips-tricks/
http://bigemployee.com/4-simple-techniques-to-quickly-debug-and-fix-your-css-code-in-almost-any-browser/
https://benfrain.com/debugging-css/
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 5 years, 1 month ago.
Assisted by: Christian Cox.