A user is customizing a paid Shopify theme called Kingdom, attempting to transform a square image in a rich text block into a circular shape with responsive sizing. The goal is to have the image appear left of text on desktop and above text on mobile devices.
Initial Challenge:
User tried CSS code but was unsure how to adapt it from a previous theme version to the new rich text block structure
Needed the image to be a manageable, responsive size (max 250px)
Solution Process:
Another user provided custom CSS targeting .rich-text__media and img elements
Initial code worked but created an unwanted grey background and misplaced the image
Final working CSS solution:
Applied border-radius: 50% to make the image circular
Set max-width and max-height to 25vw for responsive sizing
Used flexbox centering on the figure element
Set background: transparent to remove grey background
Resolution:
The issue was successfully resolved with the custom CSS added to the rich text block’s Custom CSS section in the theme settings panel. The image now displays as circular with proper responsive behavior across devices.
Summarized with AI on November 3.
AI used: claude-sonnet-4-5-20250929.
I am testing out a new theme for my website, I want to make a square image to appear circular. The block type is a rich text block where the image is on the left and the text on the right.
I want the image to be a more manageable size but also, responsive so where the size of the webpage adjusts, so does the image size and placement. When using desktop, image on the left of the text, but then on mobile and smaller devices, it appears above the text.
See screenshot below of what I wish to achieve (first pic) vs, what I currently have (main focus being on the image).
On my previous version of my site, I used the below code provided by someone, but was unsure how to adjust. I am using a paid theme called Kingdom is that is important info to anyone. I was unsure of the full process to change the code from my previous version of my store to this new one. As the block is now a rich text block.
Thanks for getting back to me, I appreciate the difficulty without a sample site. I am merely playing around with the site right now before purchasing the theme, so wanted to check I could get everything working first before splashing the cash on the theme.
Try this link, it should work and show the right theme.
Your code worked exactly as intended, however it now presents a grey background behind it and places the image in the top right. I’m keen to either place centre right, but remove the grey background.