1

I want to create a template file for a Views row style. I have created a template file for a field as views-view-fields--menu.tpl.php and output style file as views-view--menu.tpl.php.

How to create a template for a view row style?

  • 1
    needs to be views-view-fields--menu.tpl.php – No Sssweat May 16 '17 at 9:31
3

In Advanced section in your view, there is a theme option in the last row. On clicking it you can get suggestions for possible template files in row style output sub heading. In this the last option is the most specific one.

Also on clicking the row style output heading you can get the code of default row style tpl which is getting called currently, which you can add in your tpl file and override it as per your requirement.

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.