• Hi, when I select ‘Frame’ for an image style in a WordPress gallery on 2021 Theme, there is a black frame around the outside of the frame, and in the link. Is there a way to prevent that happening please. I’d also like to be able to change the frame colour for each image. Ideally, a different colour for each frame, but if that were not possible, then same colour for all frames differentaited from the page background colour. Thanks in advance for any help provided. Roger

    • This topic was modified 5 months, 1 week ago by rjfnz.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator threadi

    (@threadi)

    It looks like you’re using the “Two images showcase” pattern included with TwentyTwentyOne and have slightly customized it for yourself to display 3 images. That’s perfectly fine, of course 🙂 However, the border color comes directly from that specific pattern in this theme.

    Here are your options for resolving this:

    • The border color is dictated by the pattern. Unfortunately, there is no option to customize the color. However, it would be possible with custom CSS: * { --global--color-border: red; } – this will make all borders red. You would need to add the code under Appearance > Customizer > Additional CSS.
    • Or, instead of using the pattern, you can create a gallery yourself using the Gallery block. This gives you full control over the design via options in the editor.
    • Or, for displaying galleries, you can use one of the many gallery plugins available: https://wordpress.org/plugins/tags/gallery/
    Thread Starter rjfnz

    (@rjfnz)

    Thank you for the detailed advice Threadi. The gallery I set up there was just using the gallery block in WordPress, and I selected the number of columns from the settings for the block. Screenshot attached. Maybe I am not seeing the correct settings. I will look again. If no joy, I’ll have a look for a gallery plugin

    Thread Starter rjfnz

    (@rjfnz)

    Moderator threadi

    (@threadi)

    As mentioned, you have the options listed above. Changing the number of images does not affect the styling.

    Thread Starter rjfnz

    (@rjfnz)

    All good. Thanks for follow up. I’m halfway there now with my issue. Just struggling to get rid of the black border Gallery block adds. I’ll check out some gallery plugins.

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

You must be logged in to reply to this topic.