Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Custom header logo not showing when using FQDN as URL

Solved by pamtbaau View solution

Started by Jason 4 years ago · 2 replies · 406 views
4 years ago

I have set up a new Grav site, using the default Quark theme. I have set a custom header logo under the theme settings. When I access the site using the IP address as the URL, my custom header logo shows at the top. If I use the FQDN of the server as the URL, I see the default Grav header logo. I have cleared the cache in Grav, rebooted the server, cleared the browser cache on the PC, and I'm still see the same behavior from multiple PCs. Does anyone know how to resolve this?

Thank you

4 years ago Solution

@Jason, Grav tries to find theme/plugin config files in three locations:

  1. /user/env/<domain>/config/...
  2. /user/config/...
  3. /user/<themes-or-plugins>/...

It might be that your changes have been saved in location 1, in the folder for domain "X". When switching domains Grav tries to find the config in location 1, using the folder for the current domain "Y", but won't find it. It will then fallback to location 2, and if that doesn't exist, to the config in the themes/plugins folder.

So, that might be the reason why your custom header logo is not showing when switching domains.

See issue Theme settings set in Admin saved under user/env/.../config/themes instead of user/config/themes

👍 1
last edited 01/14/22 by pamtbaau
4 years ago

Thank you, you helped me resolve the issue!

I was logging into the admin site with the IP address as the URL. When I logged in to the admin site using the FQDN as the URL, I found that my logos were not showing up. I uploaded the logos again, and now I see the correct logo when using the FQDN or the IP.

Thanks again!

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 57 14 hours ago
Support · by Anna, 3 days ago
2 65 17 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago