[Resolved] Make site width smaller when there’s no sidebar

Home Forums Support [Resolved] Make site width smaller when there’s no sidebar

Home Forums Support Make site width smaller when there’s no sidebar

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1600332
    emanharout

    Hi support team,

    Currently my site has the following CSS:

    
    body.single.no-sidebar .site.grid-container {
        max-width: 750px;
    }
    

    While this works on any single-page blog post, it does not work on Pages that have no sidebar. Is there any CSS I can use to make regular pages 750px when they have no sidebar?

    #1600558
    David
    Staff
    Customer Support

    Hi there,

    the .single is a body class that belongs to Posts ( not pages or archives ). You can remove that so your CSS looks like:

    body.no-sidebar .site.grid-container {
        max-width: 750px;
    }
    #1601075
    emanharout

    Thanks David! That did it.

    #1601459
    David
    Staff
    Customer Support

    Glad to hear that

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.