• Hi all

    I know I can add a css class to a block, but how do I style a whole page?

    What I mean is I need this on one of my pages:

    <body>
    <div class=class1>
    <div class=class2>
    <p> [Content goes here] </p>
    </div>
    </div>
    </body>

    All of my pages are using standard templates, so I don’t want to mess around with that. Surely there is a way to do this in the Gutenberg editor??

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could group blocks using the Group block and then assign a custom css class or Id to the group. Then you could copy all the content to another Group block.

    Since Gutenberg Version 12.8 you can group groups from the block settings menu.

    Alternatively you could add a css class to the page body using a plugin like Add Custom Body Class.

    Thread Starter wbuchanan

    (@wbuchanan)

    Thanks Jos – that worked.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Style whole page’ is closed to new replies.