Viewing 1 replies (of 1 total)
  • Moderator Kathryn Presner

    (@zoonini)

    We can adapt the CSS Richard (sacredpath) provided in this other thread for your gallery:

    .gallery-columns-3 .gallery-item {
         max-width: calc(32%);
    }

    Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated to the latest version.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.

Viewing 1 replies (of 1 total)
  • The topic ‘How to center gallery’ is closed to new replies.