Archived topic
Add Border Color to Images in Blog Posts
3 replies · Started by Zhorra on September 29, 2018
Hi,
I am trying to figure out how to add a border color to the images in each of the blog posts for this site page. In Inspect using Chrome, I see all of the coding but am having trouble pinpointing the exact image tag command to get the border color to be active. Is there an easier way to decipher what the exact image code or tag is?
https://girlsdrawingirls.com/archives/artist-spotlight-liz-masters/
There are multiple entries under the Artist Spotlight page. Would I have to drop custom code into each post page individually? Or is there a way to get a border color around both the featured image and images posted to the body? Also, the images that I am uploading look blurry or fuzzy on screen, and I am not sure what to do to make them come out more clear. I tried adjusting the settings under the Customize tab and didn't seem to work.
Also, is there a way to change the color of the "Read More/Post a Comment" buttons on the Artist Spotlight and News & Updates pages? Right now it is a solid black color, and I would like to change the color and hover color options.
thanks!
Hi there,
1. Try this CSS to add border on all images in single posts:
.single .inside-article img {
border: 2px solid #000;
}
2. I'm not seeing any blurry image. GP doesn't change how the image is displayed. Is there a specific one I should be looking at?
3. Try the Buttons section here:
https://docs.generatepress.com/article/colors-overview/
Let me know if this helps :)
Thank you!
The code worked for getting the border color active!
The color option in the "Bottons" section of "Color" directory does not accept the color changes I enter in.
I have also tried to find the code for that in Inspect and have had no luck. Would you know of a way to find the directory and command to get the Read More button to change colors?
THanks for your help!
Ahh you are using WPSP for that.
Can you try adding button class in WP Show Posts > Content > Read more button class?
I think it should inherit the customizer setting once you do that.
Is this doesn't work, can you open a support topic in WPSP's support forum?
https://wordpress.org/support/plugin/wp-show-posts
Thanks!