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.
By webdev100 on
Hi,
I have created one page view and one block view. Both views have filter criteria. How can I give different class names to the views filters?
Thanks,
D
Comments
In Views.css file, i have
In Views.css file, i have this:
I simply have two different views. Views names are VA and NJ. I like to give two different width to both views. Not sure how i can do it. Below did not work.
Override Exposed Filter
Hi,
Method:1
For add HTML tags in your views You have to create template files.
For create Exposed Filter template:
1.Copy the views-exposed-form.tpl.php which is located at /sites/all/modules/views/theme to your own theme folder.
2.renamed the views-exposed-form.tpl.php to views-exposed-form--VIEW-NAME.tpl.php and modify it with whatever u like.
3. Go to the Views admin UI and click the Rescan template files button in Theming information.
OR
Method:2
Using Jquery.
Thanks
Raj Laddha
cmsMinds
rajesh@cmsminds.com
Drupal Development - North Carolina