Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It's just a ":" and nothing else. No span, no div, no classes. This makes it really difficult to style and fix issues with it.
I believe this should be easier than:
function mytheme_preprocess_webform_time(&$variables) {
$variables['element']['minute']['#prefix'] = '<span class="webform-time-separator">:</span>';
}
Comments
Comment #1
hass CreditAttribution: hass commentedComment #2
quicksketchThanks, good suggestion. Adding a span like your example looks perfect.
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedClosing for lack of activity and demand. Also, 7.x-3.x is receiving critical bug fixes only.
Comment #4
hass CreditAttribution: hass commentedI still need this and code has not committed as I know.
Comment #5
DanChadwick CreditAttribution: DanChadwick commentedReopen with a patch for 7.x-4.x if you still would like this change.
Comment #6
hass CreditAttribution: hass commentedComment #7
DanChadwick CreditAttribution: DanChadwick commentedUpon further reflection, webform doesn't need the markup bloat when there is so little demand for this and there is a theme workaround.