0
votes

How to create a custom style for a view in drupal 8? For example I have 3 diffrent views and all of them should render a diffrent html moreover I would like to add a text above the table?

I can replace "views/views-view.html.twig" but it will have an effect on all views

Regards,

1

1 Answers

0
votes

How to create a custom style for a view

You can assign a custom class to a specific View on View's settings page:

enter image description here

and then add desired styles for this class to your theme's style.css file.

I would like to add a text above the table

It could be done via View's settings too, just add new items to a HEADER section:

enter image description here