Enable disable sidebar on post

Home Forums Jevelin Theme Enable disable sidebar on post

Home Forums Jevelin Theme Enable disable sidebar on post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • confrontador
    Participant

    Hi,

     

    Is it possible to enable and disable the sidebar in the post?

     

    I only have this option on the pages

    Hi @confrontador,

     

    I hope you are well today and thank you for your question.

     

    You can disable the sidebar on specific post by adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    .single-post.postid-1 #sidebar {
        display: none;
    }
    
    .single-post.postid-1 #content {
        width: 100%;
        padding: 0;
    }

     

    You have to change the post ID in the above CSS code with the post ID where you want to hide the sidebar.

     

    You can find post ID as described in the following pages.

     

    https://pagely.com/blog/find-post-id-wordpress/

    https://www.ostraining.com/blog/wordpress/how-to-find-the-page-id-in-wordpress/

     

    Best regards,
    Shufflehound team

    confrontador
    Participant

    Thanks it works, and ¿how to disable in categories?

    For category archive page, you can use the below custom CSS code.

     

    .archive.category #sidebar {
        display: none;
    }
    
    .archive.category #content {
        width: 100%;
        padding: 0;
    }
Viewing 4 posts - 1 through 4 (of 4 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form