• Hello,

    I’m having a trouble with the spacing of the blocks using twentytwentytwo theme and FSE.
    I couldn’t remove the white space between the colored Blocks on https://recreazzz.repair
    So, I changed this line in theme.json file:

    “spacing”: {
    “blockGap”: “0rem”

    This worked on some Blocks, but not on others. Also, it removed the spacing on the header menu.

    How can i fix this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Which section of your page has the blocks you are trying to target? Any change you could set a class and change the spacing through CSS? I hate suggesting it, but might work.

    P.S.
    How did you get your custom fonts working? I am so jealous:
    https://www.ads-software.com/support/topic/twenty-twenty-two-font-control/

    Thread Starter pseudorandomnumber

    (@pseudorandomnumber)

    There are Gaps between the blue / green and green / pink group locks. Between pink/orange sections there are no gaps.

    For the tonts, i used this Plugin: https://dineshkarki.com.np/use-any-font

    So I am thinking that the blocks with the gaps, like the green one, are all column blocks. And that the ones at the bottom, the pink pink/orange ones (it is all one color but composed of two main blocks, yes?) are column blocks. The global setting for margin are different when I look at the code in Chrome.

    The bottom margin settings for those two types of blocks are different. They are set by the template creator. You can edit them, maybe!, by going to any template and opening the right sidebar by clicking on the circle that is split into black and white halves. Then at the bottom it says: “Customize the appearance of specific blocks for the whole site.” And you can click the link below to set global settings for the blocks types.

    I am not sure what effect the editing of the json file did. I would try undoing your edit before playing with the global setting though.

    Maybe you already did all this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block Spacing and theme.json’ is closed to new replies.