• Resolved siutek

    (@siutek)


    hi,
    Google PageSpeed Insight report SEO problem: empty link: <a href="">Search</a> in .storefront-handheld-footer-bar element > search list item. of course, this footer on mobile works fine. it is just a matter of fixing a bug in PageSpeed Insight

    • This topic was modified 2 years, 1 month ago by siutek.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there @siutek!

    Thank you for contacting us!

    I understand you are seeing a blank link in the Storefront handheld footer bar due to which you are getting SEO warning in Google Page Speed Insights.

    You can replace href with any value such as #na by defining the function below in your child theme’s function.php file:

    1. Create a child theme for your Storefront theme: https://developer.www.ads-software.com/themes/advanced-topics/child-themes/
    2. In your child theme’s functions.php file, paste the code below:

    
    function storefront_handheld_footer_bar_search() {
    echo '<a href="#na">' . esc_attr__( 'Search', 'storefront' ) . '</a>';
    storefront_product_search();
    }
    

    I hope this helps!

    Thread Starter siutek

    (@siutek)

    @kaushiksomaiya
    It’s work fine, thx!! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pagespeed insight issue – empty link’ is closed to new replies.