[Support request] Layout CSS Issues for No Sidebars and Sidebar/Content

Home Forums Support [Support request] Layout CSS Issues for No Sidebars and Sidebar/Content

Home Forums Support Layout CSS Issues for No Sidebars and Sidebar/Content

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #618717
    Thomas

    Customizing > Layout > Sidebars

    Sidebar Layout: Content(no sidebars)
    Blog Sidebar Layout: Sidebar / Content

    Screenshot:
    http://take.ms/xRKhhO

    How can I apply this CSS to only the no sidebar layout? Has to be an easy way I’m missing.

    I have it set site-wide so the blog section doesn’t look right.

    .inside-article {
    padding: 50px 110px!important;
    }

    .comments-area {
    padding: 0px 110px!important;
    margin-top: 0px!important;
    }

    GeneratePress 2.1.3
    GP Premium 1.6.2
    #618811
    Leo
    Staff
    Customer Support

    Hi there,

    There would be a .no-sidebar class in the body so you can do this:

    .no-sidebar .inside-article {
        padding: 50px 110px!important;
    }
    
    .no-sidebar .comments-area {
        padding: 0px 110px!important;
        margin-top: 0px!important;
    }

    Let me know if this helps.

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