01-Feb-2026

Fixing Galleries in Oxygen

|

Recover that lost column when going from editor to front end.

For some reason when using the built-in WordPress galleries one column is lost from the front end. Anyway, the fix is simple enough. Just add the following CSS to the main CSS file.

/* Fix the issue of galleries losing one column from editor to view. */
:root {
  --wp--style--unstable-gallery-gap:0.5rem;
}

:root :where(.is-layout-flex) {
    gap: var(--wp--style--unstable-gallery-gap);
}

Leave a Reply

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram