Get rid of Category sidebar

  • Posted in : TheBlogger
  • bjsint
    Participant

    I’d like to get rid of the sidebar for the category pages. How can I do this.

    I still want the sidebars to remain on the blog and single posts.

    serkan
    Moderator

    Hi,
    You can deactivate the sidebar for the portfolio category and product category pages via appearance > customize > sidebar sections.
    If you use this custom css code, you can remove the sidebar for the blog category pages;

    .category .sidebar { display: none; }
    @media screen and (min-width: 768px) { .category .site-content { margin-right: 0; padding-right: 0; width: 100%; } }

    Thanks

    bjsint
    Participant

    Great, that works. How do I make the text column for the category description bigger. Even though the sidebar is gone, the category description is the same size. It looks a bid odd

    https://the-cheekytraveler.com/category/travel-hacking/

    serkan
    Moderator

    Hi,
    You can use this custom css code,

    .category-description { font-size: 15px; }

    Thanks

    bjsint
    Participant

    Sorry, I meant how do I make the width of the text column wider, not the text size.

    The paragraph of text looks very thin when it could take up more of the screen space. It is currently the same size as it was when the sidebar was there. Without the sidebar the paragraph width should be bigger.

    serkan
    Moderator

    Hi,
    You can try to use these custom css code;

    .is-single-post-title-with-margins .category .post-header-classic .entry-header {  max-width: none; }
    .category-description { max-width: none; }

    Thanks

    bjsint
    Participant

    works great, thanks!

    serkan
    Moderator

    You are welcome.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register