1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Remove Sidebar on Certain Category Page

Discussion in 'Basic Support Forum' started by ryanshepherd93, Jun 9, 2019.

  1. ryanshepherd93

    Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Hey guys, how do I remove a sidebar on a certain category page? I want the sidebar on every category page, except for one.

    Thanks!
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Freelancer' Divi layout for all Pro members:View Demo
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Kindly share your URL where you want to hide the sidebar.
     
  3. ryanshepherd93

    Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    It is actually memberpress protected, but I found some code that hides it all.

    I went ahead and used this:

    /*** Take out the divider line between content and sidebar ***/
    #main-content .container:before {background: none;}

    /*** Hide Sidebar ***/
    #sidebar {display:none;}

    /*** Expand the content area to fullwidth ***/
    @media (min-width: 981px){
    #left-area {
    width: 100%;
    padding: 23px 0px 0px !important;
    float: none !important;
    }
    }
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  4. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    If you wish to apply that only on a certain category, you can try the below:
    1. Let's say your category name technology.
    2. You need to add this body.category-technology in front of your CSS.
    **For example: body.category-technology #main-content .container:before {background: none;}
     
    ryanshepherd93 likes this.
  5. ryanshepherd93

    Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin


    Ahhh, that makes sense. Thank you!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade horizontal timeline design for your Divi site without using any plugins:View Demo