Skip to content
Public Ticket #17950

Page width

Conversation thread

andrewsgibson replied

Customer Reply

Thanks, that worked perfectly!

PenciDesign Supporter replied

Staff Reply

Hi,

The following code will apply the single page only:

@media only screen and (min-width: 1170px) {
    body.page #navigation .container {
        width: 900px;
        margin: 0 auto;
    }
}

Regards,
PenciDesign.


andrewsgibson replied

Customer Reply

Thanks, but I need it work for pages not single posts.

PenciDesign Supporter replied

Staff Reply

Hi,

Please modify the CSS to work for the single post:

@media only screen and (min-width: 1170px) {
    body.single #navigation .container {
        width: 900px;
        margin: 0 auto;
    }
}

Regards,
PenciDesign.



andrewsgibson replied

Customer Reply

I tried that and it resets the menu width on every page including the home page and single posts. I need it to work on single pages only. I don't mind entering a different CSS code snippet for every page with the page ID if that's what it takes.

Thanks,

Andrew

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Custom CSS then add the following custom CSS code:

@media only screen and (min-width: 1170px) {
    #navigation .container {
        width: 900px;
        margin: 0 auto;
    }
}

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Custom CSS then add the following custom CSS code:

@media only screen and (min-width: 1170px) {
    .penci_is_nosidebar #main {
        width: 900px;
        margin: 0 auto;
    }
}

Regards,
PenciDesign.

andrewsgibson started the conversation

Conversation Start

Is there a way to set the page width to 900 pixels when there's no sidebar? The left side of the menu needs to align with the left side of the text. Here's an example page where I'd like that to happen:

http://mastering-lightroom.com/about/

I'm using Soledad Simple Blog.

Thanks,

Andrew

Want to join this conversation or access attachments? Sign in first.