Favicon not appearing

HueyLightshop
New Member
2 0 1

Hello,

I've tried updating my favicon with a 32x32 png but it will not appear on desktop or mobile.

I looked at similar posts and it seems as though most of them were missing the favicon bit of code. However, I did find the code in my theme (quoted below). Would anyone be able to identify the issue?

Any advice would be greatly appreciated. Thanks!

{% if settings.favicon != blank and settings.favicon contains '.png' %}
  <link rel="shortcut icon" href="{{ settings.favicon | img_url: 'master' }}" type="image/png" />
  {% elsif settings.favicon != blank and settings.favicon contains '.ico' %}
  <link rel="shortcut icon" href="{{ settings.favicon | img_url: 'master' }}" type="image/x-icon" />
  {% endif %}

 

KetanKumar
Shopify Partner
20430 2114 7676

@HueyLightshop 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
HueyLightshop
New Member
2 0 1
Great, thanks in advance! The URL is hueylightshop.com
0 Likes

Hi,

Can you try replacing the whole code with:

  {%- if settings.favicon != blank -%}
    <link rel="shortcut icon" href="{{ settings.favicon | img_url: '32x32' }}" type="image/png">
  {%- endif -%}

Hope this helps.

 

On-Demand Shopify Design, Development & Administration
Superco delivers agency quality for less than a freelancer. No agency retainers, no minimums, no management, just high-quality work, delivered on-time and on-budget.
ESSuperco | superco.io
0 Likes