themes icon indicating copy to clipboard operation
themes copied to clipboard

Baskerville 2: Social Icons block won't display inline

Open rinazrina opened this issue 4 years ago • 2 comments

When adding a Social Icons block and center-aligned them, they're displayed inline on the editor, but on the published or preview version, they're displayed vertically.

Steps to replicate

  1. Open a page or post editor on a simple site, create a Social Icons block.
  2. Add links to some of the Social icons, such as https://facebook.com to the Facebook icon, and https://instagram.com to the Instagram icon
  3. Change the Social Icons block alignment to Align center
  4. Save draft or Publish the page.

Result

The Social icons displayed inline (side by side/horizontally) on the editor, but not on the published version. When the post/page is published or previewed, the Social icons displayed vertically.

Screenshot of the post editor:

Screen Shot 2020-08-08 at 13 01 35


Screenshot of the published version:

Screen Shot 2020-08-08 at 13 01 59


Screenshot of the Blog page:

Screen Shot 2020-08-08 at 13 22 15


Expected

The Social icons should be displayed inline/horizontally, the same as the way they look on the editor.


I provided CSS code below as a workaround:

.post-content .aligncenter {
    display: flex;
}
  • User report: #23218390-hc
  • Follow-up ticket: #3207326-zen

rinazrina avatar Aug 08 '20 05:08 rinazrina

Related: this is how it's displaying currently if the user "centers" the icons: Screen Shot 2021-05-15 at 2 15 53 PM

If they allow them to be left-aligned they look okay.

https://wordpress.com/forums/topic/social-links-block-doesnt-center/

supernovia avatar May 15 '21 20:05 supernovia

Recreated this - With 644,313 sites having Baskerville active - this seems a good one to get fixed.

jordesign avatar Nov 04 '21 05:11 jordesign