December 2016
Beginner to intermediate
1005 pages
21h 54m
English
In the case of our Categories block, we can begin by navigating to the core/modules/block/templates folder and following these remaining steps:
block.html.twig and place it into our theme/octo/templates folder.block.html.twig to block--views-block--categories-block-1.html.twig based on the template's suggestions.<h2> to <h4>:New markup
{% set classes = ['block'] %}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if label %}
<h4{{ title_attributes }}>{{ label }}</h4>
{% endif %}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}
</div>Once finished, make sure to save the template, ...
Read now
Unlock full access