[Hummingbird] favicons not appearing

favicons not appearing https://www.velocitywebsites.co.nz/
and https://www.thegalleryfitness.co.nz/

  • Ashik
    • Staff

    Hi Rod,

    Thank you for reaching WPMU DEV support. Hope you're doing well today.

    Sorry to hear favicon isn't working on your sites. After inspecting I can confirm Smush CDN is causing for this favicon issue. I'm escalating this to our SLS team for further troubleshooting. They will take care of it and back with a solution. For a temporary workaround, you may disable Smush CDN until it fixes.

    Please note that SLS team might delay here to respond as they work on more complex issues. Your patience will be appreciated on this.

    Feel free to reply here if you've any more questions or concerns. Have a great day ahead.

    Regards,
    Ashik

  • Ari
    • Recruit

    Hey Rod

    Hope you are fine today!

    I found an issue whenever I enable Smush CDN in your site, it move the Icon related HTML to body section instead of head section. and that's why icons are not showing.

    But Smush is working fine in my test sites.

    So it seems the issue is site specific, could be a plugin or theme conflict, so for further testing I need to disable all plugins, change theme, and also I need the FTP details.

    So for testing purpose, it's better to have staging site where I can do my test freely. The test will not remove anything from your site, but since I have to disable plugins and change theme, in that time site will look odd.

    === How to create staging site ===

    In case, if you need more information for how to create staging environmen.

    Usually there are 3 options:

    1) You can do that with hosting, if your hosting provide this feature.
    2) You can use tools like Snapshot Managed Backups (or Duplicator premium, All-in-One WP Migration with their pro multisite extension)
    3) You also can do that manually - here is a guidance to do so: http://www.wpexplorer.com/migrating-wordpress-website/

    Regards,
    Ari

  • Rod
    • WPMU DEV Initiate

    I am creating a staging copy for you. Will let you know when it is active. How do I add a secure log in.

    Also the issue occurs on only 2 websites that all have similar set ups. What is unique about these two is they are on Cloudflare plus through our hosting provider. So this could be a rail gun issue which is the only difference between the other sites also on Cloudflare.

  • Ari
    • Recruit

    Hi Rod

    Thanks for the info, please the login credentials through our secure contact from: https://premium.wpmudev.org/contact/#i-have-a-different-question
    Using the below template:

    Subject: "Attn: Ari"
    - WordPress admin (login url/username/password)
    - FTP credentials (host/username/password)
    - cPanel/Plesk credentials (host/username/password)
    - link back to this thread for reference
    - any other relevant urls

    Keep in mind the subject line as ensures that it gets assigned to me.

    Have a great day!
    Warm Regards,
    Ari

  • Ari
    • Recruit

    Hey Rod

    Hope you are fine today!

    After further testing I found an odd issue in your site, which is not happening in my test sites.
    The issue is:
    In your child theme's (Pro-Child) functions.php file from line 51 to 71, I found some codes which is adding google's tag manager's codes and some meta tags in the <head> section of site.
    This is not the issue, the issue is with PHP built in DomDocument class, which change the dom output a bit when it find noscript tag in the <head> section.
    We had to use this class for changing the regular image sources with CDN sources.

    So I changed these specific codes of child theme a bit to solve this issue.

    Here's the old code:

    // Additional Functions
    // =============================================================================
    function third_party_tracking_code_header() { ?>
    <meta name="google-site-verification" content="0000000000000000000000000000" />
    <meta name="msvalidate.01" content="0000000000000000000000000000" />
    
    <!-- Google Tag Manager -->
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-TLVPSZ');</script>
    <!-- End Google Tag Manager -->
    
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=000-000000"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
    <?php }
    
    add_action( 'wp_head', 'third_party_tracking_code_header' );

    Here's the new code:

    // Additional Functions
    // =============================================================================
    function third_party_tracking_code_header() { ?>
    <meta name="google-site-verification" content="0000000000000000000000000000" />
    <meta name="msvalidate.01" content="0000000000000000000000000000" />
    
    <!-- Google Tag Manager -->
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-TLVPSZ');</script>
    <!-- End Google Tag Manager -->
    
    <?php }
    
    add_action( 'wp_head', 'third_party_tracking_code_header' );
    
    function google_tag_manager_noscript() { ?>
    
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=000-000000"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
    
    <?php }
    
    add_action( 'x_before_site_begin', 'google_tag_manager_noscript' );

    You may notice that I divided that piece of code into 2 parts.
    The 1st part, I have added them with wp_head action as it was.
    But the 2nd part I have added them with x_before_site_begin action, which will add these code in the body section. and this hook is available in your theme (Pro), so if you change the theme anytime, you have to change the hook too.

    This solution solved the issue in staging site from my end. Please have a look at it to make sure it's working.

    Best Regards,
    Ari

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.