[Resolved] Seperate Archive width/post width?

Home Forums Support [Resolved] Seperate Archive width/post width?

Home Forums Support Seperate Archive width/post width?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #845963
    Robert

    Is there a way, in CSS, to change the width of the blog/archive pages alone whilst leaving the page/post pages the default width? Or vice/versa? Thanks!

    #846006
    David
    Staff
    Customer Support

    Hi there,

    you can use some CSS like so:

    .blog #main, .archive #main {
        max-width: 900px; /* set width */
        margin-left: auto;
        margin-right: auto;
    }

    We actually just added this function to the Layout Element in GPP 1.8 which is in Alpha for public testing. You can download it from your Account > Downlaods if your interested in trying it out.

    #1136270
    Robert

    Hello, I have a new question on this one. David said y’all were adding the ability to set the blog/archive width separate into GPP. Just wondering if that was ever added or where? I’m on beta updates but can’t seem to find it. I’m needing to set the archive pages to a higher width than the post/pages. Can’t seem to get that code above to work anymore. Thanks.

    #1136453
    Leo
    Staff
    Customer Support

    Yup it’s in the content width option in Layout Element:
    https://docs.generatepress.com/article/layout-element-overview/#content-1

    Let me know if this helps ๐Ÿ™‚

    #1137097
    Robert

    I get it now. Thanks!

    #1137221
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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