themes icon indicating copy to clipboard operation
themes copied to clipboard

Natural: Fig Captions are aligned left when image block is set to Centered

Open villanovachile opened this issue 5 years ago • 7 comments

Steps to replicate

  1. Create Image block
  2. Enter fig caption
  3. Align as Centered

The current workaround seems to be to deselect center/left/right alignment, and fig caption defaults to center alignment.

Image Link: https://d.pr/i/SpLLKF

Result

The result was a left aligned fig caption

Image Link: https://d.pr/i/bNiQaT

Expected

I expected the fig caption to be centered:

Image Link: https://d.pr/i/i8YGbu

  • User report: 10984343-hc
  • Follow-up ticket: 3985466-zen

villanovachile avatar May 12 '21 22:05 villanovachile

Same issue.

User Report: 4190078-zen Theme: Hemingway Rewritten

Would have offer custom CSS solution to (text-align: center; ), but Personal plan.

Sandkorner avatar Aug 04 '21 08:08 Sandkorner

Another report here: 32773571-hc

Theme: Hemingway Rewritten

Provided a CSS workaround:

/* Center captions under images | 32773571-hc RW */
.wp-block-image .aligncenter>figcaption {
text-align: center;
}

rw-ye avatar Dec 13 '21 08:12 rw-ye

User report: 29883060-hc Theme: Natural

What I found was the image captions only displayed incorrectly when the image was set as to "Align center". When we changed alignment to "None", the captions displayed correctly.

We also found that the images were displayed correctly via Firefox, but incorrectly via Chrome and Safari.

Provided workaround to set image alignment to "None".

kylemcph avatar Dec 30 '21 15:12 kylemcph

Looks like this is a duplicate of issue Automattic/themes#2938, which has been closed and moved to Trac.

kylemcph avatar Dec 30 '21 15:12 kylemcph

I see the same issue on Baskerville 2 theme. The issue was reported here: 36947902-zd

I shared this code with them to solve this in the meantime:

/* Center captions under images | 5658274-hc MA */
.wp-block-image.aligncenter>figcaption {
    display: block;
}

marianearchimbaud avatar Oct 25 '22 14:10 marianearchimbaud

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 3985466-zen
  • [ ] 4190078-zen
  • [ ] 36947902-zen

github-actions[bot] avatar Oct 25 '22 14:10 github-actions[bot]

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

  • Tested on Simple: Could not replicate

📌 FINDINGS/SCREENSHOTS/VIDEO

  • Natural is a retired premium theme, and I was not able to replicate this issue anymore.

Simple Example Markup on 2023-03-11 at 12:37:55

📌 ACTIONS

  • Closed as could not replicate (please reopen the issue reoccurs on theme this theme)

📌 Message to Author

  • HEs please do not reopen this issue for other themes - create a new report for that specific theme, or for multiple themes if you can replicate it across other themes.
  • I've opened a specific issue report for Hemingway Rewritten, as that is the only theme where I could replicate this issue: https://github.com/Automattic/wp-calypso/issues/75934

cuemarie avatar Mar 11 '23 19:03 cuemarie