• I am almost there but I need some help to get it aligned properly. I added this code to have a shopping cart sidebar on the right side of page and all pages except the home page. It works but the cart is now pushed way down and I want to bring it up more even with product box on

    this page

    /* Move sidebar to the right on all pages EXCEPT home page*/
    .home #primary { width: 100%; }
    .home #secondary { display: none; }
    
    #primary {
    	float: left;
    	width: 100%;
    }
    
    #secondary {
    	clear: right;
    	display: block;
    	padding: 50px 0;
    	float: right;
    	width: 30%;
    }
    
    /* to remove the + sign */
    .sidebar-link {
    	display: none;
    }
    
    .widget-column {
    	width: 100%;
    }
    
    .one.widget-column {
    	float: none;
    	margin: 0 0 0 40px;
    }

    Also, is there a way to exclude the sidebar on the ‘About Us’ page and other pages I want the text to fill the entire width of the page? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, Beanz

    To bring the cart up, add this code to your theme CSS.

    .widget-title {
    	margin: -50px 0px .5em 0;
    }

    To exclude the sidebar from certain pages search for wordpress custom page widgets or custom sidebars plugins.

    Cheers

    Lawrence

    Thread Starter MzBeanz

    (@mzbeanz)

    That didn’t work but thanks for responding.

    I changed it some and it seems to work.

    ‘/* Move sidebar to the right on all pages EXCEPT home page*/
    .home #primary { width: 100%; }
    .home #secondary { display: none; }

    #primary {
    float: left;
    width: 70%;
    }

    #secondary {
    clear: right;
    display: block;
    padding: 50px 0;
    float: right;
    width: 30%;
    position: fixed; /* keeps it in same postion */
    top: 225px; /* move up or down */
    right: 20px;
    }

    /* to remove the + sign */
    .sidebar-link {
    display: none;
    }

    .widget-column {
    width: 100%;
    }

    /* adjust space between sidebar and main content */
    .one.widget-column {
    float: none;
    margin: 0 0 0 5px;
    }
    `

    will check into the plugin you mentioned. Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sidebar on pages except homepage’ is closed to new replies.