Misalignment in elements, Spotlight theme

Topic summary

Misalignment between text blocks and a contact form in the Shopify Spotlight theme. The Rich Text block and the default Page block (page title) didn’t align with the form; screenshots were provided and are central to illustrating the issue.

Key steps and fixes:

  • Initial CSS fix: Added to Assets > base.css
    .contact.section-template–24069227544906__form-padding { max-width: 78rem; }
    This aligned the Rich Text content with the form but the Page block title remained misaligned.

  • Requirement: Use the Page title as the header for consistent alignment across current and future pages.

  • Final adjustment: Edited the theme template (main-page.liquid) as guided via a screenshot to adjust how the Page title aligns relative to the form. Exact code wasn’t posted in text, only indicated where to add it.

Outcome:

  • User confirmed the final change achieved the desired alignment using the Page title.
  • No further issues reported; thread resolved.
Summarized with AI on December 13. AI used: gpt-5.

Hello Community, hope you are well :slightly_smiling_face:

I feel like I have searched the whole web for a solution to this issue, so I thought it’s maybe a good idea to finally make a post in hopes that you can help me figure this out, before I pull my hair out.

I’m using the Spotlight theme for my shop, everything is great and working properly like I want, except for the fact that there is a misalignment with objects within the page(s).

In the screenshot that I attached below, I have made a Rich Text-block, with a heading and a text as you would expect from an element like this. However, it is misaligning with the form below it.

The Page “block” which you cannot delete, I have hidden in this instance, but even when I show it and remove the header from the Rich Text block, it’s even more misaligned to the form.

Is there something I’m doing wrong here?

Also, here is the structure of the section itself:

Appreciate any help.

Thanks,

bjorken

1 Like

Hi @bjorken

Pease, share your store URL. Thanks!

1 Like

Hi @bjorken ,

Please send the website link, I will check it for you

Hey! Sorry forgot about that small detail..

https://www.cortexkeys.com/

Password: 783157y

https://www.cortexkeys.com/

Password: 783157y

Hi @bjorken ,

.contact.section-template--24069227544906__form-padding {
    max-width: 78rem;
}

Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:

Thank you!

It did solve my issue, even though if I do show the actual Page block, it is still misaligned.

Now I could remove the solution you gave me from the CSS and it would be aligned with the form, but then it would be misaligned with the text in between. Either way, this will have to do for now.

Appreciate it!

Hi @bjorken ,

So everything worked fine? is there anything you want me to check about it?

I would rather have the page title be the header than the rich text. I have saved the site now to include the Page block, and hidden the Rich Text header. This is the result:

To have some consistency from all future pages (and existing ones), I would rather have the alignment be from the Page title, rather than any other element.

Appreciate it, thanks.

Hi @bjorken ,

Please go to main-page.liquid file and add code here:

1 Like

This is perfect, thank you so much for the help!

1 Like

Hi @bjorken ,

You’re welcome and happy to help you :blush:

1 Like