How can I remove H2 tags from my website's footer section?

Hello,

I noticed that there are ton of H2 tags on my blog post as well as my collection pages due to the footer section (About company, Affiliate, other blogs, and etc)

For whatever reason, the footer section is assigned with H2 tags even though they should either be assigned with footer tags or no tags.

Can anyone help me out with the coding issue here, so that Google won’t be confused when people land on my pages?

Thanks.

The URL of the blog is https://skin-rebirth.com/blogs/the-blog/what-does-toner-do-for-your-face

@skinrebirth

yes please share footer section code so i will change h2 to different tag

sorry, i am a super newbie. Where can i obtain the footer section code?? and which code specifically should i “find”?

@skinrebirth

oh sorry for that

go to edit code >>> section >>>> footer section code

Please see below, Please let me know if you need anything else from me

{%- if section.blocks.size > 0 -%}
{%- for block in section.blocks -%}
{%- case block.type -%} {%- when 'text' -%} {%- if block.settings.title != blank -%}

{{ block.settings.title | escape }}

{%- endif -%}

{%- if block.settings.content != blank -%}

{{ block.settings.content }}
{%- endif -%}

{%- if block.settings.show_social_media -%}
{% render ‘social-media’, class: ‘Footer__Social’, spacing: ‘loose’ %}
{%- endif -%}

{%- when ‘links’ -%}
{%- assign linklist = linklists[block.settings.menu] -%}

{%- if linklist != empty -%}

{{ linklist.title | escape }}

{%- endif -%}

{%- when ‘newsletter’ -%}
{%- if block.settings.title != blank -%}

{{ block.settings.title | escape }}

{%- endif -%}

{%- if block.settings.content != blank -%}

{{ block.settings.content }}
{%- endif -%}

{%- form ‘customer’, id: ‘footer-newsletter’, class: ‘Footer__Newsletter Form’ -%}
{%- if form.posted_successfully? -%}

{{ 'footer.newsletter.success' | t }}

{%- else -%} {%- if form.errors -%}

{{ form.errors.messages['email'] }}

{%- endif -%} {{ 'footer.newsletter.submit' | t }} {%- endif -%} {%- endform -%} {%- endcase -%}
{%- endfor -%}
{%- endif -%}
{%- if section.settings.show_currency_selector and shop.enabled_currencies.size > 1 -%} {%- assign currency_selector = true -%} {%- endif -%}

{%- if section.settings.show_locale_selector and shop.published_locales.size > 1 -%}
{%- assign locale_selector = true -%}
{%- endif -%}

{%- if locale_selector or currency_selector -%}

{%- form 'localization', id: 'localization_form_footer', class: 'Footer__LocalizationForm' -%} {%- if currency_selector -%}
{{ 'footer.general.currency' | t }} {{- form.current_currency.iso_code -}} {% if form.current_currency.symbol %}{{ form.current_currency.symbol }}{% endif %} {%- render 'icon', icon: 'select-arrow' -%}
{% render 'icon' with 'close' %} {{ 'footer.general.currency' | t }}
{%- for currency in form.available_currencies -%} {{ currency.iso_code }} {% if currency.symbol %}{{ currency.symbol }}{% endif %} {%- endfor -%}
{%- endif -%}

{%- if locale_selector -%}

{{ 'footer.general.locale' | t }} {{- form.current_locale.endonym_name -}} {%- render 'icon', icon: 'select-arrow' -%}
{% render 'icon' with 'close' %} {{ 'footer.general.locale' | t }}
{%- for locale in form.available_locales -%} {{- locale.endonym_name -}} {%- endfor -%}
{%- endif -%} {%- endform -%}
{%- endif -%}
© {{ shop.name }}

{{ powered_by_link }}

{%- if section.settings.show_payment_methods -%}
{%- capture payment_methods -%}
{%- for type in shop.enabled_payment_types -%}

  • {{ type | payment_type_svg_tag }}
  • {%- endfor -%} {%- endcapture -%}

    {%- if payment_methods != blank -%}

      {{ payment_methods }}
    {%- endif -%} {%- endif -%}

    {%- if settings.footer_background == settings.background -%}

    .Footer { border-top: 1px solid var(--border-color); }

    {%- endif -%}

    {% schema %}
    {
    “name”: “Footer”,
    “class”: “shopify-section–footer”,
    “settings”: [
    {
    “type”: “checkbox”,
    “id”: “show_payment_methods”,
    “label”: “Show payment methods”,
    “info”: “Payment method icons are automatically displayed based on your Shopify payment methods.”,
    “default”: true
    },
    {
    “type”: “header”,
    “content”: “Currency selector”,
    “info”: “To add a currency, go to your payment settings.
    },
    {
    “type”: “checkbox”,
    “id”: “show_currency_selector”,
    “label”: “Show currency selector”,
    “default”: true
    },
    {
    “type”: “header”,
    “content”: “Language selector”,
    “info”: “To add a language, go to your language settings.
    },
    {
    “type”: “checkbox”,
    “id”: “show_locale_selector”,
    “label”: “Show language selector”,
    “default”: true
    }
    ],
    “blocks”: [
    {
    “type”: “text”,
    “name”: “Text / social media”,
    “settings”: [
    {
    “type”: “text”,
    “id”: “title”,
    “label”: “Heading”,
    “default”: “About the shop”
    },
    {
    “type”: “richtext”,
    “id”: “content”,
    “label”: “Text”,
    “default”: “

    Use this text area to tell your customers about your brand and vision. You can change it in the theme settings.


    },
    {
    “type”: “checkbox”,
    “id”: “show_social_media”,
    “label”: “Show social media”,
    “info”: “Make sure to have properly configured your social media in the theme settings.”,
    “default”: true
    }
    ]
    },
    {
    “type”: “links”,
    “name”: “Links”,
    “settings”: [
    {
    “type”: “link_list”,
    “id”: “menu”,
    “label”: “Menu”,
    “info”: “This menu won’t show dropdown items.”
    }
    ]
    },
    {
    “type”: “newsletter”,
    “name”: “Newsletter”,
    “limit”: 1,
    “settings”: [
    {
    “type”: “paragraph”,
    “content”: “Customers who subscribe will have their email address added to the "accepts marketing" customer list.”
    },
    {
    “type”: “text”,
    “id”: “title”,
    “label”: “Heading”,
    “default”: “Newsletter”
    },
    {
    “type”: “richtext”,
    “id”: “content”,
    “label”: “Text”,
    “default”: “

    A short sentence describing what someone will receive by subscribing


    }
    ]
    }
    ],
    “default”: {
    “blocks”: [
    {
    “type”: “text”,
    “settings”: {}
    },
    {
    “type”: “links”,
    “settings”: {
    “menu”: “footer”
    }
    },
    {
    “type”: “newsletter”,
    “settings”: {}
    }
    ]
    }
    }
    {% endschema %}

    @skinrebirth - you have content in footer tag only, the menu titles are added in h2 tag

    Hi, Thanks for the help.

    If you at the link below, here are the issues i have with the tags

    https://skin-rebirth.com/blogs/the-blog/what-does-toner-do-for-your-face

    @skinrebirth - this will need code editing, multiple sections are having these tags. I recommend to create backup of the theme, removing tags from it and then once everything is fine then only make it live

    @skinrebirth

    yes please update this code

    
    {%- if settings.footer_background == settings.background -%}
    
    {%- endif -%}
    
    {% schema %}
    {
    "name": "Footer",
    "class": "shopify-section--footer",
    "settings": [
    {
    "type": "checkbox",
    "id": "show_payment_methods",
    "label": "Show payment methods",
    "info": "Payment method icons are automatically displayed based on your Shopify payment methods.",
    "default": true
    },
    {
    "type": "header",
    "content": "Currency selector",
    "info": "To add a currency, go to your [payment settings.](/admin/settings/payments)"
    },
    {
    "type": "checkbox",
    "id": "show_currency_selector",
    "label": "Show currency selector",
    "default": true
    },
    {
    "type": "header",
    "content": "Language selector",
    "info": "To add a language, go to your [language settings.](/admin/settings/languages)"
    },
    {
    "type": "checkbox",
    "id": "show_locale_selector",
    "label": "Show language selector",
    "default": true
    }
    ],
    "blocks": [
    {
    "type": "text",
    "name": "Text / social media",
    "settings": [
    {
    "type": "text",
    "id": "title",
    "label": "Heading",
    "default": "About the shop"
    },
    {
    "type": "richtext",
    "id": "content",
    "label": "Text",
    "default": "
    
    Use this text area to tell your customers about your brand and vision. You can change it in the theme settings.
    
    "
    },
    {
    "type": "checkbox",
    "id": "show_social_media",
    "label": "Show social media",
    "info": "Make sure to have properly configured your social media in the theme settings.",
    "default": true
    }
    ]
    },
    {
    "type": "links",
    "name": "Links",
    "settings": [
    {
    "type": "link_list",
    "id": "menu",
    "label": "Menu",
    "info": "This menu won't show dropdown items."
    }
    ]
    },
    {
    "type": "newsletter",
    "name": "Newsletter",
    "limit": 1,
    "settings": [
    {
    "type": "paragraph",
    "content": "Customers who subscribe will have their email address added to the \"accepts marketing\" [customer list](/admin/customers?query=&accepts_marketing=1)."
    },
    {
    "type": "text",
    "id": "title",
    "label": "Heading",
    "default": "Newsletter"
    },
    {
    "type": "richtext",
    "id": "content",
    "label": "Text",
    "default": "
    
    A short sentence describing what someone will receive by subscribing
    
    "
    }
    ]
    }
    ],
    "default": {
    "blocks": [
    {
    "type": "text",
    "settings": {}
    },
    {
    "type": "links",
    "settings": {
    "menu": "footer"
    }
    },
    {
    "type": "newsletter",
    "settings": {}
    }
    ]
    }
    }
    {% endschema %}
    

    Thanks for taking the time to do this.

    However the tags are still the same.

    https://skin-rebirth.com/blogs/the-blog/what-does-toner-do-for-your-face

    @skinrebirth

    i have just update on footer no other one

    Could you please help me with my code as well? I am not allowed to change “header” to “text”.. My problem is I have H2-tags in the footer, which I want to change to “text”.

    {% if section.blocks.size %}
    {% render 'footer-block' for section.blocks as block %}
    {% endif %}

    {% if linklists[section.settings.additional_menu].links != blank %}

    {% render 'navlist', menu_list: linklists[section.settings.additional_menu].links, depth: 1, max_depth: 1, aria_expanded: true, %} {% endif %}

    {% assign year = 'now' | date: '%Y' %} {{ 'footer.general.copyright_html' | t: year: year, shop_name: shop.name }}

    {{ powered_by_link }}

    {%- assign currency_selector = section.settings.show_currency_selector -%}
    {%- assign locale_selector = section.settings.show_locale_selector -%}

    {%- if section.settings.payment_icons or currency_selector or locale_selector -%}

    {% comment %}Inject @pixelunion /shopify-cross-border/cross-border begin{% endcomment %} {% form 'localization' %} {% if locale_selector and form.available_locales.size > 1 %} {% comment %}Inject @pixelunion /shopify-cross-border/multi-language begin{% endcomment %} {% comment %} Generate a "random" number so ids are unique {% endcomment %} {% assign unique_id = "now" | date: "%N" | modulo: 1000 %}
    {{ 'general.language.dropdown_label' | t }}

    <button
    type=“button”
    class=“disclosure__toggle”
    aria-expanded=“false”
    aria-controls=“lang-list-{{ unique_id }}”
    aria-describedby=“lang-heading-{{ unique_id }}”
    data-disclosure-toggle

    {{ form.current_locale.endonym_name }}

    {% comment %}Inject @pixelunion /shopify-cross-border/multi-language end{% endcomment %}

    {% endif %}

    {% if currency_selector and form.available_currencies.size > 1 %}
    {% comment %}Inject @pixelunion /shopify-cross-border/multi-currency begin{% endcomment %}
    {% comment %} Generate a “random” number so ids are unique {% endcomment %}
    {% assign unique_id = “now” | date: “%N” | modulo: 1000 %}

    {{ 'general.currency.dropdown_label' | t }}

    <button
    type=“button”
    class=“disclosure__toggle”
    aria-expanded=“false”
    aria-controls=“currency-list-{{ unique_id }}”
    aria-describedby=“currency-heading-{{ unique_id }}”
    data-disclosure-toggle

    {{ form.current_currency.iso_code }} {%- if form.current_currency.symbol -%}{{ form.current_currency.symbol }}{%- endif -%}

    {% comment %}Inject @pixelunion /shopify-cross-border/multi-currency end{% endcomment %}

    {% endif %}
    {% endform %}
    {% comment %}Inject @pixelunion /shopify-cross-border/cross-border end{% endcomment %}

    {% if section.settings.payment_icons and shop.enabled_payment_types.size > 0 %}

      {% for type in shop.enabled_payment_types %}
    • {{ type | payment_type_svg_tag }}
    • {% endfor %}
    {% endif %}
    {%- endif -%}

    {% schema %}
    {
    “name”: “Footer”,
    “max_blocks”: 5,
    “settings”: [
    {
    “type”: “header”,
    “content”: “Payment icons”
    },
    {
    “type”: “checkbox”,
    “id”: “payment_icons”,
    “label”: “Show payment icons”,
    “default”: false
    },
    {
    “type”: “header”,
    “content”: “Language Selector”,
    “info”: “To add a language, go to your language settings.
    },
    {
    “type”: “checkbox”,
    “id”: “show_locale_selector”,
    “label”: “Show language selector”,
    “default”: true
    },
    {
    “type”: “header”,
    “content”: “Currency Selector”,
    “info”: “To add a currency, go to your payment settings.
    },
    {
    “type”: “checkbox”,
    “id”: “show_currency_selector”,
    “label”: “Show currency selector”,
    “default”: true
    },
    {
    “type”: “header”,
    “content”: “Additional menu”
    },
    {
    “type”: “link_list”,
    “id”: “additional_menu”,
    “label”: “Menu”,
    “default”: “footer”,
    “info”: “This menu won’t show dropdown items.”
    }
    ],
    “blocks”: [
    {
    “type”: “menu”,
    “name”: “Menu”,
    “settings”: [
    {
    “type”: “link_list”,
    “id”: “menu”,
    “label”: “Menu”,
    “default”: “main-menu”,
    “info”: “This menu won’t show dropdown items.”
    }
    ]
    },
    {
    “type”: “rich_text”,
    “name”: “Rich text”,
    “settings”: [
    {
    “type”: “text”,
    “id”: “title”,
    “label”: “Heading”,
    “default”: “Rich text”
    },
    {
    “type”: “richtext”,
    “id”: “text”,
    “label”: “Text”,
    “default”: “

    Use this section to welcome customers to your store, say a bit about your brand, or share news and seasonal promotions.


    }
    ]
    },
    {
    “type”: “social_accounts”,
    “name”: “Social accounts”,
    “limit”: 1,
    “settings”: [
    {
    “type”: “paragraph”,
    “content”: “Social links can be managed in your General settings.”
    }
    ]
    },
    {
    “type”: “newsletter”,
    “name”: “Newsletter”,
    “limit”: 1,
    “settings”: [
    {
    “type”: “text”,
    “id”: “title”,
    “label”: “Heading”,
    “default”: “Subscribe”
    },
    {
    “type”: “richtext”,
    “id”: “text”,
    “label”: “Text”,
    “default”: “

    Invite customers to join your mailing list.


    }
    ]
    }
    ],
    “default”: {
    “settings”: {
    “additional_menu”: “footer”
    },
    “blocks”: [
    {
    “type”: “menu”,
    “settings”: {}
    },
    {
    “type”: “newsletter”,
    “settings”: {}
    }
    ]
    }
    }

    {% endschema %}

    @KetanKumar forgot to tag you :grinning_face_with_smiling_eyes: