• Resolved cbgamedev

    (@cbgamedev)


    Hey there,

    Great theme, I’m just having a few issues that I cant seem to workout

    I’m looking to get the sidebar (which contains the archive info etc) to only appear on one page, the posts page.

    Then with the pages that do not have the side bar column id like to make the text and images make use of the full width of the page, whilst keeping the text and images aligned to the left.

    Any help would be greatly appreciated!

    cheers James

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hi James,

    Thanks for choosing Apex!

    This can be done with the layouts feature in Apex Pro, or with some custom CSS.

    To update the site like this with CSS, please add the following code:

    body:not(.home) .sidebar-primary {
      display: none;
    }
    @media all and (min-width: 56.25em) {
    
      body:not(.home) .main {
        width: 100%;
      }
    }

    Please copy & paste the code above into the “Custom CSS” section in the Customizer (Appearance > Customize), and it should take affect right away.

    Thread Starter cbgamedev

    (@cbgamedev)

    Thanks for getting back to me so quickly Ben!

    I just realised I was after adding the sidebar to only the posts page and not the home page. Would that be something like:

    .page-posts instead of .home?

    Thread Starter cbgamedev

    (@cbgamedev)

    Ahh I worked it out, in case anyone else wants to do this I changed .home to .blog (which is the posts page). So it’s:

    body:not(.blog) .sidebar-primary {
    display: none;
    }
    @media all and (min-width: 56.25em) {

    body:not(.blog) .main {
    width: 100%;
    }
    }

    Theme Author Ben Sibley

    (@bensibley)

    Nice update, thanks for sharing that here!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SideBar to one page only’ is closed to new replies.