- This topic has 11 replies, 4 voices, and was last updated 4 years, 2 months ago by
David.
-
AuthorPosts
-
December 20, 2021 at 9:48 am #2054742
Dev
Hello,
Please see the below screenshot.
I want to add such type of border around my images, how can I do that?
Please let me know.
December 20, 2021 at 11:34 am #2054849Leo
StaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationLet me know 🙂
December 20, 2021 at 7:35 pm #2055110Dev
Hello,
I have added the sites in the private box.
Please let me know.
December 20, 2021 at 7:59 pm #2055118Elvin
StaffCustomer SupportHi there,
Will the border only be for the images inside the content area?
If so, you can add this CSS:
.entry-content img { border: 5px solid black; }December 20, 2021 at 8:40 pm #2055140Dev
Thanks. Would you please tell me where I have to add this CSS code?
Do I have to enter it manually in each post?
December 20, 2021 at 8:54 pm #2055146Elvin
StaffCustomer SupportThanks. Would you please tell me where I have to add this CSS code?
Do I have to enter it manually in each post?
You can add it on Appearance > Customize > Additional CSS. 😀
December 20, 2021 at 10:47 pm #2055185Dev
Hello,
I added that CSS in the Appearance > Customize > Additional CSS. But that didn’t add any border around my images.
Check the private box u will see no border on the page.
December 20, 2021 at 11:39 pm #2055200Elvin
StaffCustomer SupportI see you’re using a caching plugin. Can you try clearing your cache so it generates a new one including the latest CSS addition?
January 18, 2022 at 1:25 am #2084145Dev
Hello,
I have added the below CSS to add borders around my post images.
.entry-content img {
border: 5px solid black;
}But I don’t want a border on the image shown in the screenshot. So please check the below screenshot link.
I have added my site URL in the private box.
January 18, 2022 at 2:38 am #2084220David
StaffCustomer SupportHi there,
edit that Image Block and in Advanced > Additional CSS Class(es) add:
no-img-borderThen add this CSS:
.entry-content .no-img-border img { border: none; }January 18, 2022 at 6:14 am #2084441Dev
Hello,
Can you please tell me where I have to add the below CSS code
January 18, 2022 at 6:23 am #2084454David
StaffCustomer SupportSo this is the combined CSS:
.entry-content img { border: 5px solid black; } .entry-content .no-img-border img { border: none; }And you can add that in Customizer > Additional CSS at the very top.
-
AuthorPosts
- You must be logged in to reply to this topic.