Changed Default Layout to 1 column, but option for right sidebar layout

Support Forums for LiveMesh Themes & Plugins Forums Invent Theme Support Changed Default Layout to 1 column, but option for right sidebar layout

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15474
    asapelearning
    Participant

    I changed my default layout in the Theme Options to be full width (1 column), as that is what the majority of my pages need to be. However, on certain pages I would still like to be able to choose the right sidebar option. There only exists a template for left sidebar (called “Two Column Left Navigation” in my page Templates list). I created a custom page template called “Two Column Right Navigation” by simply copying the Two Column Left Navigation file and changing the div id and class to be the reverse.

    However, when I select my new Two Column Right Navigation template, my sidebar isn’t displaying. When I check the source code, it appears to be auto selecting “twelvecol” for my div instead of “ninecol last” like it does for the Two Column Left Navigation file, as well as giving my <body class=” …. layout-1c ….”> instead of layout-2c.

    I’m not sure how to make those adjustments to my custom page template to get those auto pre-selects to change. Any help you can provide would be appreciated.

    #15475
    asapelearning
    Participant

    The URL of the site and page I’m trying to use the Left Navigation layout on is http://asapportal.ca/asap-academy/

    #15488
    Veena
    Moderator

    You can use the same two column left navigation layout and then add the below custom CSS to achieve right navigation.

    .page-id-141#left_nav_2c_template.layout-2c-r #content {
      float: left;
    }
    

    You need to target the corresponding page and then apply float left to content area, you have to replace 1143 with your page’s id.

    If you dont want to use left navigation for any of the pages then you can directly apply the following ie, without targeting page id’s-

    #left_nav_2c_template.layout-2c-r #content {
      float: left;
    }
    
    #15518
    asapelearning
    Participant

    That worked – thanks! I also needed to adjust the threecol margins to be on the left instead of the right.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Changed Default Layout to 1 column, but option for right sidebar layout’ is closed to new replies.