Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi @warrior7089 – looks like that extra margin is coming from two different places. Feel free to give this a try and adjust the values as you like.

    Unfortunately it’s not possible to target only the widget block that contains the social links block in the footer, so all widget blocks are affected.

    /* remove the top margin from widget blocks in footer */
    .footer-widgets .widget_block {
    	margin-top: 0;
    }
    
    /* remove the top margin from group blocks in footer  */
    .footer-widgets .wp-block-group:not(.has-background):not(.alignwide):not(.alignfull) {
    	margin-top: 1em;
    	margin-bottom: 1em;
    }
    Thread Starter warrior7089

    (@warrior7089)

    Thanks, your css worked.

    Should I open a ticket or it’s a known issue?

    Moderator Kathryn Presner

    (@zoonini)

    @warrior7089 – glad the CSS did the trick.

    Should I open a ticket or it’s a known issue?

    I spot-checked with a couple of other default themes, but the size of the front/back end widget spacing discrepancy varies from theme-to-theme. I did a quick search of both Core Trac and the Gutenberg GitHub repo but I’m not immediately finding any related tickets, so I’d say you could go ahead and open one. I’m not 100% sure if this is an issue on the theme or block editor side, though, so feel free to open it in Core Trac and a developer will let you know if it should be moved to GitHub. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘large margins between widgets in footer (in admin area they seem smaller)’ is closed to new replies.