Header & Footer Navigation Links Causing High Keyword Density

Solved
Highlighted
Tourist
5 0 0

Hi, 

I am working on optimizing the product pages and one issue that I am facing is whenever I check the keyword density of any page, it includes the keywords from my Header and Footer menu which is causing high keyword density. It includes all those keywords that are in the links and sub-links which are irrelevant to that page. For example, the word Hoodies is actually appearing on every page with a keyword density of more than 7 %. 

 

Is there any way I can stop the crawling of my Header and Footer sections? 

I am sharing the theme.liquid code as well (If someone wants me to edit the code)

 

<!doctype html>
<html class="no-js" lang="{{ shop.locale }}">
<head> 

<meta name="google-site-verification" content="_" />
{% include 'kiwiSizing' %}

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="{{ settings.color_header_bg }}">

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

<link rel="canonical" href="{{ canonical_url }}">

<title> {{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} &ndash; {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} {% endunless %}
</title>

{% if page_description %}

{% endif %}

{% include 'social-meta-tags' %}

<script>
document.documentElement.className = document.documentElement.className.replace('no-js', 'js');
</script>

{{ 'theme.scss.css' | asset_url | stylesheet_tag }}

<script>
window.theme = window.theme || {};

theme.strings = {
stockAvailable: {{ 'products.product.stock_available' | t: count: '1' | json }},
addToCart: {{ 'products.product.add_to_cart' | t | json }},
soldOut: {{ 'products.product.sold_out' | t | json }},
unavailable: {{ 'products.product.unavailable' | t | json }},
noStockAvailable: {{ 'products.product.stock_unavailable' | t | json }},
willNotShipUntil: {{ 'products.product.will_not_ship_until' | t: date: '[date]' | json }},
willBeInStockAfter: {{ 'products.product.will_be_in_stock_after' | t: date: '[date]' | json }},
totalCartDiscount: {{ 'cart.general.savings_html' | t: price: '[savings]' | json }},
addressError: {{ 'sections.map.address_error' | t | json }},
addressNoResults: {{ 'sections.map.address_no_results' | t | json }},
addressQueryLimit: {{ 'sections.map.address_query_limit_html' | t | json }},
authError: {{ 'sections.map.auth_error_html' | t | json }},
slideNumber: {{ 'homepage.hero.slide_number' | t: slide_number: '[slide_number]' | json }}
};
</script>

<script src="{{ 'lazysizes.min.js' | asset_url }}" async="async"></script>

{% if template.directory == 'customers' %}
<script src="{{ 'shopify_common.js' | shopify_asset_url }}" defer="defer"></script>
{% endif %}

<script src="{{ 'vendor.js' | asset_url }}" defer="defer"></script>

{% if template.name == 'product' or template.name == 'cart' or template.name == 'index' %}
<script>
window.theme = window.theme || {};
theme.moneyFormat = {{ shop.money_format | json }};
</script>
{% endif %}

<script src="{{ 'theme.js' | asset_url }}" defer="defer"></script>

{{ content_for_header }}
{%- include 'bold-common' -%}
<!-- SEO-Booster-GSC --> 
<!-- END-SEO-Booster-GSC -->
<!-- SEO-Booster-GSC --> 
<!-- END-SEO-Booster-GSC -->
{% include 'judgeme_core' %}
</head>

<body class="template-{{ template | replace: '.', ' ' | truncatewords: 1, '' | handle }}" >

<a class="in-page-link visually-hidden skip-link" href="#MainContent">
{{ 'general.accessibility.skip_to_content' | t }}
</a>

{% section 'header' %}

<div class="page-container page-element is-moved-by-drawer">
<main class="main-content" id="MainContent" role="main">
{{ content_for_layout }}
</main>

{% section 'footer' %}
</div>

<script id="QuantityTemplate" type="text/template">
{% raw %}
<div class="js-qty">
<input type="text" value="{{ value }}" id="{{ key }}" name="{{ name }}" pattern="[0-9]*" data-line="{{ line }}" class="js-qty__input" aria-live="polite">
<button type="button" class="js-qty__adjust js-qty__adjust--minus" aria-label="{% endraw %}{{ 'cart.label.decrease_quantity' | t }}{% raw %}">
{% endraw %}{% include 'icon-minus' %}{% raw %}
<span class="icon__fallback-text">−</span>
</button>
<button type="button" class="js-qty__adjust js-qty__adjust--plus" aria-label="{% endraw %}{{ 'cart.label.increase_quantity' | t }}{% raw %}">
{% endraw %}{% include 'icon-plus' %}{% raw %}
<span class="icon__fallback-text">+</span>
</button>
</div>
{% endraw %}
</script>

{% if template.name == 'product' %}
<div id="ProductModal" class="modal">
<div class="modal__inner">
<img src="" id="ProductZoomImg" class="product-modal__image">
</div>
<button type="button" class="modal__close js-modal-close text-link">
{% include 'icon-close' %}
<span class="icon__fallback-text">{{ 'general.accessibility.close_modal' | t | json }}</span>
</button>
</div>
{% endif %}

<script src="//cdn.codeblackbelt.com/js/modules/cool-image-magnifier/main.min.js?shop=dark-roses.myshopify.com"></script>

<ul hidden>
<li id="a11y-refresh-page-message">{{ 'general.accessibility.refresh_page' | t }}</li>
</ul>
{%- include 'bold-currency-converter' -%}

{% include 'mps-buy-me' %}
{{ 'booster-page-speed-optimizer.js' | asset_url | script_tag }}

<!-- Added by Sticky Cart by Uplinkly -->
{% include 'sticky-cart-by-uplinkly' %}
</body>{{ '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js' | script_tag }}{{ 'api.jquery.js' | shopify_asset_url | script_tag }}
<script src="https://cdn.static.kiwisizing.com/SizingPlugin.prod.js?v=191&shop=dark-roses.myshopify.com"></script>
</html>

 

 

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
416 29 59

Hi, @ghulammujtaba.

 

Tira from Shopify, here. 

 

Good question! 

 

I did some digging on this and it doesn't look like there is a way to hide the crawling of Header and Footer sections within a template. We do have a help doc on how you can hide certain pages from being crawled by search engines by customizing the 

<head>

section of your theme.liquid file: Hiding a page from search engines. If you're using Google as your search engine, you can find more information on blocking pages from being crawled by Google, from their documentation, here.

 

You can also reach out to a Shopify Expert for help. Shopify Experts specialize in making coding customizations on your store. You can find a list of Shopify Experts here.

 

I am curious to see what the community has to suggest! 

Tira | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

1 Like

Success.

Shopify Partner
66 22 18

I don't believe there's a way to exclude parts of your page from search engine crawlers.

 

The solution here is probably to make sure your product descriptions are long and descriptive, with the keywords you're trying to target. That way the text in your header/footer doesn't make up the majority of content in that page!

Is your store fast enough? Compare your store's speed against hundreds of others for free with our benchmarker - https://www.rvere.com/
2 Likes