[Support request] How to change container size and background color diffent in HP and single post?

Home Forums Support [Support request] How to change container size and background color diffent in HP and single post?

Home Forums Support How to change container size and background color diffent in HP and single post?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1205907
    Sara

    Hello,

    I am using volume site library, I would like to know if it is possible to change background color on single post only, would like to make it white #fff and leave rest as it is? And would like also to change size of container in homepage only to make it full-width,How can I do this? Thanks!

    #1206204
    Leo
    Staff
    Customer Support

    Hi there,

    This CSS changes the body background of single posts:

    body.single {
        background-color: #fff;
    }

    You can create a layout element to make the front page full width:
    https://docs.generatepress.com/article/layout-element-overview/#content-1

    #1207497
    Sara

    Hello Leo,

    That worked fine but, I would also need this for pages and categories, actually everything else than homepage so, maybe its just easier if you can tell me css code for changing background color on homepage only which is what I need?

    Thanks!

    #1207584
    David
    Staff
    Customer Support

    Hi there,

    this for just the home page:

    body.home {
        background-color: #fff;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.