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 ![]()
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.
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!
