A user needs to add a second button to the Image with Text section in Shopify’s Dawn theme and have both buttons display side-by-side instead of stacked vertically. They’ve already changed the limit to “2” in the schema, which allows adding a second button, but it appears below the first.
Two solutions were proposed:
Liquid code modification (Ignelis): Loop through all button blocks and wrap them in a container, then adjust CSS styling to align them horizontally. The solution involves editing image-with-text.liquid and replacing the button rendering code.
CSS-only approach (PageFly-Richard): Add custom CSS to component-image-with-text.css using flexbox properties (flex-direction: unset, flex-wrap: wrap, gap: 10px) to position buttons side-by-side without modifying Liquid files.
A follow-up request asks for the complete updated code implementation, indicating the user may need more detailed guidance on applying these solutions.
Summarized with AI on November 16.
AI used: claude-sonnet-4-5-20250929.
I need to add a second button to the Image with Text section in the Dawn theme and have them align next to each. I see that changing the limit to “2” allows me to add the additional button but it puts it below the first button rather than next to it.
This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/component-image-with-text.css->paste below code at the bottom of the file: