Okay
  Public Ticket #3658159
Sidebar
Open

Comments

  •  20
    Melanie started the conversation

    Hi, I created a custom sidebar for the clinic details, operating hours, social media links, etc. I find for this sidebar the content is too condensed. 

    - Is there a way I can increase the width of the sidebar?

    I can't seem to find a setting for this. I don't mind if this would be for all the site pages/sidebar default width. 

  •  1,715
    Barry replied

    Hi Melanie,

    Thank you for your message.

    You can increase the content sidebar width by copy/paste the following CSS code to Appearance -> Customize -> Additional CSS:

    /* increase content sidebar width */
    @media (min-width: 992px) {
        .content-area .content {
            width: 72%;
        }
        .content-area .content + .col-md-3 {
            width: 28%;
        }
    }
    

    The width in above CSS is already increased by 3% based on the default width. If you would like to increase it some more you can lower the 72% value and increase the 28% value.

    Hope this helps, let me know if you have any questions.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  20
    Melanie replied

    Hi Barry,

    Thanks, that does work however there is an issue I have with this method. ALL the website pages have this sidebar setting set. Even when I explicitly "hide" the sidebar for a page there is whitespace for where a sidebar 'should be'. 

    There is a workaround to "hide" the sidebar again for specific pages? Or maybe a way to change the sidebar width only for only specific pages where it is needed? 

    Thanks for the support,

    Melanie

  •  1,715
    Barry replied

    Hi Melanie,

    I see, the CSS I provided earlier doesn't fully work. My apologies.

    Could you replace the previous CSS with the following one:

    /* increase content sidebar width */
    @media (min-width: 992px) {
        body:not(.sidebar-hide) .content-area .content {
            width: 72%;
        }
        body:not(.sidebar-hide) .content-area .content + .col-md-3 {
            width: 28%;
        }
    }
    

    This one will only target the pages where there is a sidebar visible. Pages without sidebar will be skipped.

    Changing the sidebar width for specific pages will be possible with some custom CSS but you need to add each page to the CSS code specifically. It's not really good dynamic solutions for the long run. If the above CSS codes fixes the problem I recommend to use that one instead.

    If you do want to change the sidebar width on specific pages just let me know which pages and I'll provide you with a CSS code snippet.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  20
    Melanie replied

    Hi Barry,

    This new CSS does the trick! Thank you, that is what I needed for the site.

    Just a suggestion, but for backlog feature adds, this might be a good one for consideration on Theme customizations. That is, the user can easily modify the sidebar size and options in a setting. 


    Thanks!

    Melanie


  •  1,715
    Barry replied

    I definitely agree a setting for this makes it a lot easier for users. I'll put it on the list, thank you for the suggestionsmile.png

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  20
    Melanie replied

    You are welcome, thank you for the support!