I need to remove all the divs inside the $widget of a views exposed filter. I need only the single form fields without any html around it.
I don't know PHP.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
All you need to do is simple override your own theme page for the expose filter views/theme/views-exposed-form.tpl.php to you theme template folder e.g.
and remove which you wold like to or adding your own.
Go to the modules directory and look for the 'views' module.
There is a 'theme' folder within this.
In the theme folder, copy the 'views-exposed-form.tpl.php' file to your theme.
You can then edit the template as you require.
Note, when you copy a file like this you will want to clear caches for this to work.
To edit specific components of the form I suggest you override the following function in your themes template.php file.
This can also be found in the views module folder 'theme.inc'.