Site logo

Archived topic

putting border on content photos

14 replies · Started by Laura Stella on September 30, 2020

Viewing posts 1–15 of 15

Non-techy and newcomer to Generatepress. Probably under my nose, but I can’t find where to do anything to regular post photos, like a border.

Hi there,

Any chance you can link us to the site in question?

You can use the private information field.

Let me know :)

postkatrinastella.com/staging/
thanks!

oh, and I finally 'got' that you wanted new topics opened. I was under the impression that it was preferred to find a topic already addressing the issue.

Are you referring to the featured images on the main post page?

If so this should work:

.post-image img, .featured-image img, .entry-content img {
    border: 2px solid #fff;
}

All images, everywhere. The background photo makes it necessary, but even without one, I don't think photos look good without a border.

I've never done that. Where do I put that? Can't I mess something up by doing something wrong (which I will)?

You can copy that code and paste it into Additional CSS field in the customizer :)

Before I try that, I'm thinking this doesn't give me the settings of color and width, etc, and how it incorporate the caption, which is what my old theme did. Which means Generatepress doesn't have a section that gives you control over photo presentation, am I right? I never checked to see whether Wordpress had one, independent of theme, like the photo library is independent.
So what kind of border is this code giving me?

Before I try that, I’m thinking this doesn’t give me the settings of color and width, etc,

You can just edit the code I provide to suit your need:
border: 2px solid #fff;

2px is the border width.
solid is the border style.
#fff is the color.

Which means Generatepress doesn’t have a section that gives you control over photo presentation, am I right?

That is correct.

Can you start by adding the code I provided then we can go from there and make the adjustments if needed?

Ah, yes, I see. Ok. Tomorrow, I'll let you know. Thanks.

No problem :)

YAY!! Did it, and changed color! Aces, Leo. Thanks. I won't be quite so intimidated about adding css again. I appreciate your helping such a non-techy newbie. Many aren't.

No problem :)

This archived topic is closed to new replies.