Custom background image for one specific page

Topic summary

A user running Dawn theme 15.1.0 struggled to apply a custom background image to a specific page using a page template. Previous solutions from other threads weren’t working when added to the theme.liquid file.

Solution provided:

  • Add CSS code before </head> in theme.liquid
  • Use conditional logic: {% if request.path contains 'link-in-bio' %}
  • Target the page with custom background-image CSS
  • Adjust the image URL as needed

Outcome:
The solution successfully applied the repeating background image to the link-in-bio page. The user confirmed it worked better than expected and resolved their issue.

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

I cannot for the life of me figure out what I’m doing wrong. I’m currently using Dawn theme version 15.1.0. I am wanting to use a custom background on a specific page — that page is using a page template. I tried to use the code in the accepted solution posted in the thread below but it does not work for me. I added the code before in my theme liquid but the background image isn’t showing up. Please help :disappointed_face:

https://community.shopify.com/c/shopify-design/how-to-add-custom-background-image-for-one-specific-page-in/m-p/1204778#M310736

Hi @YSMF13

Can you please share your store url with the page and the password if its password protected!

Yes! Here you go. This is the page I’d like to have a custom background (preferably a repeated background). Password is callglorypass

https://www.callandglory.com/pages/link-in-bio

I was able to use a code to hide the header and footer, but any codes I’ve tried for a custom background has not worked.

Trying adding this code before in the theme.liquid file

{% if request.path contains 'link-in-bio' %}

Change out the background image url if needed.

You should get something like this

Oh my gosh I could cry. This worked and it looks even better than I imagined!!! Thank you so much!

It looks awesome!

No problem! Glad I could help!