Apostrophe 2: No way to remove italics from image captions
Quick summary
Image captions are all italicized by default in theme Apostrophe 2; Gutenberg offers block tools to add bold or italics to captions, but this has no impact on the italicization of captions since it's there by default. This means customers can only remove that italicization with CSS.
Steps to reproduce
- Activate Apostrophe 2 on a WordPress.com site
- On a page, add an image with a caption. (Observe the caption is italicized).
- Try making the caption not italicized.
What you expected to happen
For there to be any control over the italicized captions, especially given the block tools.
What actually happened
The block tools cannot remove italicization from the image captions.
Browser
No response
Context
No response
Platform (Simple, Atomic, or both?)
Simple, Atomic
Other notes
Inspecting the image captions shows the following CSS being applied:
[class^="wp-block-"] figcaption {
font-style: italic;
Customer report was on an AT site; I replicated on my own Simple Site
Reproducibility
Consistent
Severity
Some (< 50%)
Available workarounds?
Yes, difficult to implement
Workaround details
/* remove italicized captions with no-italics class | xxx-zen */
.no-italics .wp-element-caption {
font-style: normal !important;
}
Then adding no-italics as an additional class to images, galleries, or groups containing either.
Customer Report: 7941491-zen
This customer did not want to use CSS to workaround, so they're rebuilding their content instead. They would like a follow up if we resolve this. (feel free to ping me here or in slack if you close/fix, and I can follow up with them). Thanks!
Support References
This comment is automatically generated. Please do not edit it.
- [ ] -zen
- [ ] 7941491-zen
📌 REPRODUCTION RESULTS – Tested on Atomic – Replicated
📌 FINDINGS/SCREENSHOTS/VIDEO I was able to reproduce the issue.
📌 ACTIONS – triaged
I'm not really sure how to go about this. Ideally, any changes wouldn't apply retrospectively and force users to re-italicise their captions. That could mean adding a setting in the Customizer to give users control of this, but that feels a little overkill for one request?
V curious for thoughts on different approaches here!
Yeah, this one is not easy to address without affecting existing sites using this theme.
I agree that the italic controls in the block toolbar are confusing if they are enforced by the theme, but considering the low volume of users affected (we're only aware of just one case), I think I'll close this one for now.
We can re-evaluate later if needed.