Turning off the sidebar

Hi peeps, please forgive my rookie question, this is my first time here-- I’m starting my blog from a barebones blank theme with the blog components copied from the Antimatter theme. I don’t have a use for the sidebar included in Block Content on base.html.twig (see below). I see sidebar.html.twig as its content, but what I need is to turn off the sidebar altogether from its parent container. I’m failing to connect the dots between those two. Any ideas? Thanks.

{% block body %}
    <section id="body">
        <div class="wrapper padding">
        {% block content %}{% endblock %}
        </div>
    </section>
{% endblock %}

I don’t think content block has anything to do with the sidebar. Sidebar is lower on line 81

1 Like

Update: I commented or deleted the <div id="sidebar" class="block size-1-3 pure-u-1-3"> section on blog.html.twig, to no avail. [Scratches head]

		<div class="content-wrapper blog-content-list grid pure-g">
			<div id="listing" class="block pure-u-2-3 h-feed">
				{% for child in collection %}
			        {% include 'partials/blog_item.html.twig' with {'blog':page, 'page':child, 'truncate':true} %}
			    {% endfor %}

                {% if config.plugins.pagination.enabled and collection.params.pagination %}
                    {% include 'partials/pagination.html.twig' with {'base_url':page.url, 'pagination':collection.params.pagination} %}
                {% endif %}
			</div>
			{# <div id="sidebar" class="block size-1-3 pure-u-1-3">
				{% include 'partials/sidebar.html.twig' with {'blog':page} %}
			</div> #}
		</div>
	{% endblock %}

Sigh, I must have edited that away because I don’t see {% block sidebar_navigation %} anywhere, or likely not copied from Antimatter. So I have no idea where the Sidebar is coming from.

To clarify, my theme is a pure blank with Antimatter Blog components copied, as instructed here.

Solved it, in part. I was being silly, it was right there on line 30 on templates/blog.html.twig. Don’t ask me why it was there instead of base.html.twig. :sweat_smile:

{% embed 'partials/base.html.twig' %}

[...]

			</div>
			{# <div id="sidebar" class="block size-1-3 pure-u-1-3">
				{% include 'partials/sidebar.html.twig' with {'blog':page} %}
			</div> #}
		</div>
	{% endblock %}
1 Like