0

I want to wrap date popup selects in <div> to customize drop-down button of the select. But I can't find where to wrap it. I don't want to use jquery for such.

1

You're going to need to override an existing theme function in order alter the HTML output for the date popups. You can override a theme function either from within your template.php file within your theme, or from within a custom module.

Whenever I need to identify the correct theme function to override in a hurry, I use a module called Devel Themer. It allows you to click on any on page element, and provides you with a great break down of all the theme functions and variables associated with the element you're trying to override.

Hope this helps.

EDIT: including theme function link

The theme function you need to override is theme_select

  • I used it. It shows me nothing. Just standart theme tpl – AlexEfremo Aug 1 '13 at 15:34
  • do you see the checkbox in the bottom right hand corner of your browser with a checkbox allowing Theme Developer to be enabled? If you've enabled the module and still don't see it, there's a javascript error on your page which is not allowing devel themer to load – Alex Kirsten Aug 1 '13 at 15:36
  • i see it and enabled it – AlexEfremo Aug 1 '13 at 15:57
  • updated my answer with the theme function you need to override – Alex Kirsten Aug 1 '13 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.