• mllapan

    (@mllapan)


    How do we reset formatting after switching theme?

    For example I see this:

    element.style {
    border-style: none;
    border-width: 0px;
    border-radius: 0px;
    background-color: #eeeeee;
    margin-top: var(--wp--preset--spacing--large); // NOT EXISTING IN NEW THEME
    margin-bottom: var(--wp--preset--spacing--large); // NOT EXISTING IN NEW THEME
    padding-top: 0;
    padding-bottom: 0;
    grid-template-columns: 55% auto;
    }

    Margins are wrong now because they do not exist, how to clean this mess?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mllapan

    You can just select the problematic block and from the settings you can remove margin top and bottom. When you selected these value’s may be they were valid, but as you changed the theme, they are not invalid. So, you can just check the blocks and reset their values. You can also select the block, click the three-dot menu, and choose Reset all styles. Hope this will solve the issue.

    Best regards,
    Muhibul

    Thread Starter mllapan

    (@mllapan)

    Hi, Muhibul.

    Problem is I do not have any padding or margin options within new theme, so I can not do that.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reset Gutenberg Blocks formating’ is closed to new replies.