How to override theme for quicktabs which actually renders a view In D8, I want to display a view through quicktabs. For this, at first I have created a view file and call the view through QT. The view is displays well through QT. Now, I want to change the look &amp; feel of the view. Please look into the screen of view which I've created before.

Now, based on the below theme suggestions I created the file block--quicktabs-block--gallery-tab.html.twig to override and place it under the "templates" folder in my theme.

&lt;!-- FILE NAME SUGGESTIONS:
   * block--quicktabsgallerytab.html.twig
   * block--quicktabs-block--gallery-tab.html.twig
   * block--quicktabs-block.html.twig
   * block--quicktabs.html.twig
   x block.html.twig
--&gt;


When I write something fixed like "Hello Test" in the block--quicktabs-block--gallery-tab.html.twig, its showing well. However, when I tried to do something dynamic coding like below, nothing appeared.

{% if title %}
  &lt;h3&gt;{{ title }}&lt;/h3&gt;
{% endif %}
{% for key, row in rows %}
  {% if key in rows_with_tabs %}
    {{ tabs }}
    &lt;div class="quicktabs-main" id="quicktabs-container-{{ quicktab_id }}"&gt;
  {% endif %}
  {% if key in rows_with_page_starts %}
    {% for page_key, page in rows_with_page_starts %}
      {% if key == page %}
        &lt;div class="quicktabs-tabpage{{ page_key &gt; 0 ? ' quicktabs-hide' : '' }}" id="quicktabs-tabpage-{{ quicktab_id }}-{{ page_key }}"&gt; &lt;!-- start of tbapage --&gt;
        {% set page_number = page_key %}
      {% endif %}
    {% endfor %}
  {% endif %}
  {{ row.content }}
  {% if key in rows_with_page_endings %}
    {# close .quicktabs-tabpage #}
    &lt;/div&gt; 
  {% endif %}
  {% if key == last_index %}
    {# close .quicktabs-main #}
    &lt;/div&gt; 
  {% endif %}
{% endfor %}


Am I overriding the correct file? Any suggestion?

PS:
after implementing the template file as said above, the suggestions looks like:

&lt;!-- FILE NAME SUGGESTIONS:
   * block--quicktabsgallerytab.html.twig
   x block--quicktabs-block--gallery-tab.html.twig
   * block--quicktabs-block.html.twig
   * block--quicktabs.html.twig
   * block.html.twig
--&gt;
As Sunil says you are probably using view variables in your block template

Perhaps look for another template to override further down in order to find a views template to override and use your html/twig code



Here is what I would do. 

Find the first template inside views-view.html.twig in my case it is views-view-unformatted.html.twig (red arrow above) and copy it in your theme templates folder.  Clear cache and make sure it is used and than explore the possibility of renaming it to be specific and used only for the quicktabs block.

See here for more info on how to name your templates