How to switch logos on different pages in the Dawn theme?

Hello, I am not code proficient, I have used ChatGPT to generate all my code.

My goal is to have my store’s logo displayed, except on one specific page where I would like it to display a secondary logo.

I am using the Dawn theme.

All this code has been entered into the header.liquid file.

The issues I (think) I ran into were the “request” objects. When using debugger code to view the current URL, Page handle, or Template they all came up as the same or null. Tired changing the handle in the URL editor to no avail. So ended up on making it look at the template name which I new had been assigned.

All i get is the " No image" placeholder on all my pages

Am I trying to do something impossible? should I just leave this up to my Shopify guy?

Hey, @aidanclarke

I’m not formally trained in code to provide you with an exact solution to have a specific logo for a particular page. However, I’m confident one of our Shopify experts would be able to accomplish this at a reasonable price.

Just wanted to share this as an option in case you are unable to find a coding solution in your thread.