Skip to content

I want to remove the right panel completely #1829

Closed Answered by kungfux
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

To hide the panel, you must use the ID qualifier instead of the class qualifier:

#panel-wrapper {
  display: none !important;
}

However, this will not solve the problem completely, as the main content panel will not use the available space.

The easiest way would be to override the default layout by creating _layouts/default.html with custom content to remove the panel and customize the bootstrap classes, e.g.

---
layout: compress
---
<!doctype html>

{% include origin-type.html %}

{% include lang.html %}

{% if site.theme_mode %}
  {% capture prefer_mode %}data-mode="{{ site.theme_mode }}"{% endcapture %}
{% endif %}

<!-- `site.alt_lang` can specify a language different from the UI -->
<h…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@ghost
Comment options

@kungfux
Comment options

kungfux Jul 1, 2024
Collaborator

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant