Hi, I have added my favicon to the theme, but it isn’t showing.
I tried adding this code from another solution in the community, but with no luck:
{%- if settings.favicon != blank -%}
<link rel="shortcut icon" href="{{ settings.favicon | img_url: '32x32' }}" type="image/png">
{%- endif -%}
My site is: okholmstudio.dk
Does anyone have a solution to this?
Hi @simone11 ,
Did you upload your favicon image to the favicon section? And even then it is not visible?
Yes, I have uploaded the favicon. Image attached
Use this code:
{%- if settings.favicon != blank -%}
{%- endif -%}
change img_url into image_url
How do I find the image url for the favicon?
This is your code
{%- if settings.favicon != blank -%}
{%- endif -%}
Replace your code with this
{%- if settings.favicon != blank -%}
{%- endif -%}
then try to upload the favicon image.
It doesn’t work… unfortunately
Then try this,
-
upload the favicon image with the size of 32x32
-
copy the link of uploaded favicon image from the file
-
comment this line in theme.liquid
{%- if settings.favicon != blank -%}
{%- endif -%}
- paste this link
where in href attribute you just paste the copied image link and save it.
then check this is working or not.
If after this favicon will show then i have check your theme code for why favicon is not showing.