How can I keep my subcategories always visible in sidebar?

All I want to do is show my subcategories on the sidebar menu. Currently you have to click on the + sign to have them shown. I want it open all the time. As shown in the screen shot.

@squarpeg1 Can you please share this page link?

Hi,
If you want to keep your subcategories (submenu items) always visible in the sidebar, you can do it with a small CSS tweak — depending on how your theme structures the sidebar menu.

In most themes, subcategories are hidden by default using display: none or max-height: 0. To force them to always show, try this:

.sidebar-menu .submenu,
.facets__display .disclosure__content {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

:pushpin: Add this at the end of your base.css or relevant stylesheet.

If you’re using a specific theme like Dawn, Fabric, or Craft, the class names may vary.

Also, please share your store preview link (or temp theme link) so I can guide you with exact code.

Let me know — happy to help!
Bharat Theme

https://cameojewelrysupply.com/ It is an old theme says it is called “classic”

Not sure what a store preview link is or a temp theme link. The theme says it is “classic” it is old. https://cameojewelrysupply.com/

Looking through my files there is a snippets/sidebar-partial.liquid would this be where you are speaking of? Here is the code:

{% if linklists[link.handle] == empty %}

  • {{ link.title }}
  • {% else %}
  • {% endif %}

    Classic | A theme by Shopify
    Built on Timber v2.0.0

    Thanks for sharing the link!

    try adding this CSS:

    Add it to the bottom of your theme.css or base.css file (whichever your theme uses).

    ul.sidebar-sublist__content {
      display: block !important;
    }
    

    This will force the sidebar submenu items to remain visible.

    Let me know if you’d like help adjusting the look or behavior further—happy to help here on the thread :slightly_smiling_face:
    Bharat Themes

    There does not seem to be a .css file. The closest I see is is called theme.scss.liquid It has various sections in the code and the one I pasted below mentions sidebar. Would this be the file? There is also a file called timber.scss.liquid I did not see mention of sidebar in there.

    /================ Module-specific styles ================/
    .sidebar-module {
    margin-bottom: $gutter;

    img {
    display: block;
    max-width: 100%;
    }
    }

    .template-collection {
    .sidebar-module {
    margin-top: $gutter / 2;
    }
    }

    .sidebar-module__list {
    margin-bottom: 0;

    a {
    color: $colorTextBody;

    &:active,
    &:focus,
    &:hover,
    &.is-active,
    &.is-open {
    color: $colorLink;
    }
    }
    }

    .sidebar-module__hidden-item {
    display: none;
    }

    .sidebar-module__collapse {
    display: none;
    }

    .sidebar-module__list–expand {
    .sidebar-module__hidden-item {
    display: block;
    }

    • .sidebar-module__viewmore .sidebar-module__expand {
      display: none;
      }

    • .sidebar-module__viewmore .sidebar-module__collapse {
      display: inline-block;
      }
      }

    .sidebar-sublist__trigger-wrap {
    position: relative;
    padding-right: 20px;
    }

    .sidebar-sublist a {
    display: block;
    }

    .sidebar-sublist__expand,
    .sidebar-sublist__contract {
    background: none;
    border: 0 none;
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    height: 20px;
    width: 20px;
    margin-top: -10px;
    color: $colorPrimary;
    font-size: 0.5em;
    vertical-align: middle;
    text-align: center;
    }

    .sidebar-sublist__contract {
    display: none;
    }

    .sidebar-sublist.is-open {
    .sidebar-sublist__contract {
    display: block;
    }

    .sidebar-sublist__expand {
    display: none;
    }
    }

    .sidebar-sublist__content {
    display: none;
    margin: 10px 0 10px 10px;
    padding-left: 10px;
    border-left: 3px solid $colorBorder;
    font-size: em(14px);

    .sidebar-sublist.is-open & {
    display: block;
    }
    }

    .sidebar-module__article {
    line-height: 1.4;
    margin-bottom: 10px;

    & + & {
    border-top: 1px solid $colorBorder;
    padding-top: 10px;
    }
    }

    .header-bar {
    @include clearfix();
    font-size: em(14px);
    background-color: $colorTopBar;
    color: $colorTopBarText;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;

    @include at-query($min, $large) {
    text-align: right;
    padding-top: 8px;
    padding-bottom: 8px;
    }

    a,
    button {
    color: $colorTopBarText;

    &:hover,
    &:active,
    &:focus {
    outline-color: $colorTopBarText;
    }
    }
    }

    @include at-query($min, $large) {
    .header-bar__left {
    text-align: left;
    width: 33.33%;
    }

    .header-bar__right {
    width: 66.66%;
    }
    }

    .header-bar__module {
    margin-bottom: $gutter/2;

    .header-bar__right &:last-child {
    margin-bottom: 0;
    }

    @include at-query($min, $large) {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    margin-bottom: 0;
    }
    }

    .header-bar__module–list {
    list-style: none;
    margin: 0;

    li {
    display: inline-block;
    margin: 0;

    & + li {
    margin-left: 6px;
    }
    }
    }

    .cart-toggle {
    display: inline-block;
    }

    .header-bar__cart-icon {
    font-size: 1.2em;
    margin-right: 4px;
    }

    .header-bar__cart-count {
    display: inline-block;
    border-radius: $radius;
    background-color: $colorTopBarText;
    color: $colorPrimary;
    line-height: 1;
    font-size: 1.1em;
    padding: 5px 10px;
    margin-left: 4px;
    }

    .hidden-count {
    display: none;
    }

    .header-bar__sep {
    display: none;

    @include at-query($min, $large) {
    color: $colorTopBarText;
    opacity: 0.4;
    display: inline-block;
    padding: 0 10px;
    }
    }

    .header-bar__search {
    @include clearfix();
    position: relative;
    background-color: #fff;
    border: 0 none;
    border-radius: $radius;

    @IF ( ($colorTopBar == $colorBody) or ($colorTopBar == rgba(0,0,0,0)) ) {
    border: 1px solid $colorBorder;
    }

    min-width: 100px;

    @include at-query($min, $large) {
    max-width: 160px;
    margin-left: 20px;
    }

    @include at-query($max, $medium) {
    margin: 12px 30px;
    }

    @include at-query($max, $small) {
    margin: 12px 15px;
    }

    form,
    input,
    button {
    margin-bottom: 0;
    }
    }

    .header-bar__search-input[type=“search”] {
    display: block;
    width: 60%;
    float: right;
    background: transparent;
    border-color: transparent;
    padding: 5px 0;

    &:focus {
    background: transparent;
    border-color: transparent;
    }
    }

    .header-bar__search-submit {
    display: block;
    float: left;
    width: 40%;
    font-size: 16px;
    padding: 4px 0;
    }

    .supports-fontface {
    .header-bar__search-submit {
    width: 20%;
    }

    .header-bar__search-input[type=“search”] {
    width: 80%;
    }

    @include at-query($max, $medium) {
    .header-bar__search-form {
    position: relative;
    }

    .header-bar__search-submit {
    width: 35px;
    position: absolute;
    top: 0;
    left: 0;
    }

    .header-bar__search-input[type=“search”] {
    width: 100%;
    padding-left: 35px;
    }
    }
    }

    .header-bar__search {
    .btn,
    .btn:hover,
    .btn:focus {
    background: transparent;
    color: $colorPrimary;
    }
    }