Berlin Theme - How to Left Align Header, Copy and Button on Slider

Topic summary

A user seeks to left-align header text, copy, and buttons on hero slider elements in the Berlin theme, which are currently center-aligned.

Solution Provided:
A community member offers CSS customization steps:

  • Navigate to Online Store > Themes > Assets folder
  • Open main.css (or base.css/style.css/theme.css)
  • Add custom CSS targeting .slideshow-slide__text and .slideshow-slide__desc.richtext__content classes
  • Apply left alignment with specific margin adjustments (5% left margin, 0px bottom padding)

Additional Requests:
The original poster asks about:

  • Left-aligning additional text elements (addressed with supplementary CSS)
  • Controlling text line breaks (helper notes this cannot be precisely controlled but suggests adding width constraints of 80rem to limit words per line)

Status: The discussion appears resolved with working CSS code provided, though the helper notes the solution is tested only on the demo theme and may require adjustments for the live store.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hello,

Looking to left align the text on the hero intro sliders - around where the highlited box is

At present they are all centre and base on design would be better suited to the left, left alighted and nearer the bottom.

1 Like

Hey @EmmaHilton1984

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

Hi Moeed,
The design isnt live as yet its still in customisation mode so nothing to show until that goes live.

This is the demo theme i’m using if that helps any;-

https://themes.shopify.com/themes/berlin/styles/marble/preview

Hi @EmmaHilton1984

check this one.

  1. From you Admin page, go to Online Store > Themes
  2. Select the theme you want to edit
  3. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  4. Then place the code below at the very bottom of the file.
.slideshow-slide__text {
    margin-left: 2% !important;
    margin-bottom: 5% !important;
    padding-bottom: 0px !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi thanks for this - can the text be left aligned also?

Check this one then, same instruction.

.slideshow-slide__desc.richtext__content {
    text-align: left;
    margin-left: 0;
}
.slideshow-slide__text {
    margin-left: 5%;
    margin-bottom: 5%;
    padding-bottom: 0px;
    text-align: left;
}

And Save.

Result:

Is there a way to break the text seen as
isnt accepted

We cannot control what words must be break what we can add width so it wouldn’t much words on the top.

I add code on the this.

.slideshow-slide__desc.richtext__content {
    text-align: left;
    margin-left: 0;
}
.slideshow-slide__text {
    margin-left: 5%;
    margin-bottom: 5%;
    padding-bottom: 0px;
    text-align: left;
    width: 80rem;
}

And Save.

And the thing is Im only using the demo theme. It may not be working on your store.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!