Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Theme Customizer › Posts › CSS to place captions underneath images
- This topic has 6 replies, 2 voices, and was last updated 3 years ago by Manathan.
-
AuthorPosts
-
PaulParticipant@boogieboa
- 2 Topics
- 8 Posts
Hi there,
The way the theme displays image captions obscures the image on many occasions. As you can see from the attached examples, it would be better to display captions under images rather than on top of them.
Is it possible to provide a CSS snippet that will place captions below images and not to cover all or part of an image with its caption?
Additionally, how do we change the image caption settings such as colour, font, etc?
Many thanks.
September 9, 2021 at 13:58 #34944@themodactyl- 0 Topics
- 6603 Posts
Hi Paul,
To change this, simply add the following code snippet to your website:
/** * Place caption under image */ @media (min-width: 768px){ .wp-block-image figcaption{ position:relative; display:block !important; min-width:100%; background-color:inherit; color:inherit; box-shadow:none; padding-left:0px; font-size:0.8em; } }
To add this code snippet to your site, we recommend that you paste it to the Custom CSS panel of your WordPress Customizer. Just go to your dashboard and navigate to “Appearance > Customize > Additional CSS”.
Pasting your code snippet there should do the trick for you.Also, it’s important to remember that we share snippet only to solve issues with our theme. Any further request for CSS snippets will have to be part of a defect that needs to be fixed urgently. No snippets will be shared otherwise.
If you want to go further with the customization of your website, we advise that you require customization work.
Regards,
September 10, 2021 at 09:38 #34955PaulParticipant@boogieboa- 2 Topics
- 8 Posts
Thanks for this. It’s an improvement, but the narrow width, which means the caption breaks across two lines even under large images. So how do we get the caption to behave like a paragraph, sketching across the full length of the image and breaking into two or more lines only if necessary? It would be great to use a slightly smaller font for the caption, too.
By the way, why do I never receive notifications of replies via email when it’s always ticked?
September 10, 2021 at 16:13 #34962@themodactyl- 0 Topics
- 6603 Posts
Hi Paul,
I updated the snippet in my previous reply. 🙂
Can you make sure that you have subscribed to this article? Please find the attached screenshot. It should be automatic, but maybe you unsubscribed from this topic by mistake? In case you already subscribed to this topic but don’t receive any email, can you please check your spam?
Best,
September 13, 2021 at 09:44 #35021PaulParticipant@boogieboa- 2 Topics
- 8 Posts
Again, thank you for the updated CSS snippet, which has done the job perfectly.
I have never received any email notification on your support forum, which means I come here to check after a reasonable period. I deleted my first account because I thought it had something to do with signing in with Envato. However, signing in with an email and password has made no difference in this respect. Of course, I checked my spam folder before any of the above.
Cheers.
September 14, 2021 at 11:16 #35065@themodactyl- 0 Topics
- 6603 Posts
Hi Paul,
We’re sorry to read that, it is very disturbing. 🤔 Can you please make sure to subscribe manually to this topic as explained in my previous reply?
Concerning the caption, it’s best if we take a quick look at this. Could you create a new website user for us please? If possible with administrator capabilities. You can post the user name and password in your next reply and mark it as private to keep this between us.
Thank you.
September 15, 2021 at 10:39 #35076 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘CSS to place captions underneath images’ is closed to new replies.