• Resolved Dustin W. Stout

    (@dustinwstout)


    Just updated my sites to 1.16.1 and there is now margin between sections which explicitly have the “remove top spacing” and/or “remove bottom spacing” options checked.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rich Tabor

    (@richtabor)

    Hey Dustin, do you have a URL we could look at? We’ll check it out. ??

    Thread Starter Dustin W. Stout

    (@dustinwstout)

    Hi, Rich. Here you go: https://sovisual.co

    I was just about to write some CSS to bypass whatever is happening, but my server seems to be having performance issues.

    Plugin Author Anthony Ledesma

    (@paranoia1906)

    Hi @dustinwstout,

    Thanks for the example site. I took a look at the stylesheets and it looks like the margins are being set from a Genesis theme file. I found the following file setting a bottom margin of 40px. I noticed that this file has CoBlock specific css as well as other Gutenberg block plugin styles.

    https://sovisual.co/wp-content/cache/busting/1/wp-content/themes/genesis-sample/lib/gutenberg/front-end-3.0.1.css

    Get a look at these before and after screenshots with the styles disabled.

    With styles activated
    https://prnt.sc/pljl7p

    With styles disabled
    https://prnt.sc/pljlo1

    These seem to only be loading from a cache based on the path. I would suggest start by looking to see if you can flush cache on whatever mechanism is persisting these styles. Hope this helps.

    Best regards,

    Anthony

    Thread Starter Dustin W. Stout

    (@dustinwstout)

    @paranoia1906 those css rules have always been there.

    CoBlocks had an update, and suddenly this is happening. The Remove Top Spacing and Remove Bottom Spacing options that CoBlocks provides on its block elements have always worked in overriding this css, and now it’s not. So I don’t see why changing my CSS (which is there because of other specific scenarios) is somehow the problem now.

    Plugin Author Rich Tabor

    (@richtabor)

    @paranoia1906 I think it’s because we may have removed the !important on margin top/bottom utility classes (mt-0, mb-0) – in support of our upcoming utility class plans. I’m wondering if a solution is to adjust the utility class added in this control – to something that references the !important.

    We don’t want to have mt-0 {margin-top: 0!important}, as then it will override any other utility classes, such as sm:mt-10, which would work when the media query passes the min-width of the small media query.

    Thread Starter Dustin W. Stout

    (@dustinwstout)

    @richtabor ah-ha! So there WAS a class that I wasn’t aware of that I could have targeted myself. I didn’t know the mt-0 and mb-0 were the classes associated with Remove Top/Bottom spacing, so I ended up creating my own class of no-margin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Top/Bottom Spacing not working after 1.16.1 update’ is closed to new replies.