- This topic has 14 replies, 2 voices, and was last updated 4 years ago by Leo.
-
AuthorPosts
-
August 27, 2020 at 8:08 am #1420631Rohan Verma
Hi team,
1. I want to implement this type of code for my single post images (single post image border). Should not be applicable for featured images.
.post-content img { border: 1px solid black; }
2. Need featured image shadow effect on single posts and all featured image thumbnails.
Example Screenshot: https://prnt.sc/u6xql0August 27, 2020 at 8:36 am #1420689LeoStaffCustomer SupportHi there,
1. Try this CSS:
.entry-content img { border: 1px solid #000 !important; }
2. I clicked on a few single posts and don’t see a featured image in any of them.
This should work for the WPSP featured images:
.wp-show-posts-image img { -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); }
You can tweak the shadow using this site:
https://www.cssmatic.com/box-shadowAugust 28, 2020 at 5:41 am #1421676Rohan VermaThe image shadow is working.
But the image border is applying for featured image. I don’t to display border for featured image in single posts.
Check this article: https://www.gadgetheadline.com/turn-off-active-status-facebook-app-web/
Here I have shared multiple inner content images like screenshots. I want those inner images within a border. Not for the featured image.
August 28, 2020 at 5:44 am #1421679Rohan VermaOne more thing. The archive and search result thumbnails don’t have a shadow. How to get that?
August 28, 2020 at 8:32 am #1422012LeoStaffCustomer SupportI’m not seeing a featured image in the linked post.
A featured image is an image added with this method:
https://docs.generatepress.com/article/adding-featured-images/August 28, 2020 at 8:59 am #1422062LeoStaffCustomer SupportThis should work for search results:
.post-image img { -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); }
August 28, 2020 at 10:02 am #1422123Rohan VermaSearch and archive is fixed now.
But why you can’t see featured image? Check this is the featured image for that post.
August 28, 2020 at 10:48 am #1422166LeoStaffCustomer SupportThis is the image you are referring to?
https://www.screencast.com/t/jWzeCOVxOKOThat’s not a featured image as far as I could tell – it’s just a normal image added in content.
Is it added using the featured image metabox shown here?
https://docs.generatepress.com/article/adding-featured-images/August 28, 2020 at 12:18 pm #1422249Rohan VermaYes. That’s the featured image. And added from Features Image metabox.
What’s wrong with it? Can you tell me.
August 28, 2020 at 12:19 pm #1422251Rohan VermaIf that won’t be a featured image, then how it will show in the thumbnail?
Check this: https://www.gadgetheadline.com/?s=facebook
August 28, 2020 at 1:23 pm #1422289LeoStaffCustomer SupportOk now the featured image is actually showing – it wasn’t before when I took the screenshot here:
https://www.screencast.com/t/jWzeCOVxOKOYou now have the same image twice.
The featured image doesn’t have the border added though:
https://www.screencast.com/t/NEAzP2msniMy CSS doesn’t apply to the featured image.
August 28, 2020 at 9:50 pm #1422531Rohan VermaYes. I don’t need a border for featured images.
But not all the content images are showing in border in the single post. Just check that.
https://www.gadgetheadline.com/turn-off-active-status-facebook-app-web/
August 29, 2020 at 8:40 am #1423097LeoStaffCustomer SupportYes. I don’t need a border for featured images.
There is no border on the featured image already. My CSS doesn’t apply to the featured image.
But not all the content images are showing in border in the single post.
Edit the CSS in #1 here:
https://generatepress.com/forums/topic/single-post-image-border-and-featured-image-shadow/#post-1420689August 29, 2020 at 9:20 am #1423151Rohan VermaYes. Now, it’s working fine. Thank you.
Can you guide me how can I use a featured image in middle of paragraphs according to my choice?
August 29, 2020 at 10:07 am #1423193LeoStaffCustomer SupportCan you open a new topic for the new question?
Thanks 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.