Need to clean up header.liquid due to previously used 3rd party app?

DaveD
Excursionist
55 0 7

Hello,

I came across the header.liquid file under sections in the theme editor, while I was trying to get some knowledge on h1-h2 tags.

 

I had in the past smartseo installed but removed it again.

Below code is on the very top of the header.liquid file

I am wondering whether this complete part can be deleted since I do not use smartseo anymore?! I am also wondering about this url schema.org. Should it be not the URL of my store?


<script src="{{ 'header.min.js' | asset_url }}" defer="defer"></script>
{%- comment smartseo_integration_begin_meta_data -%}
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Organization",
  "name": {{ shop.name | json }},
  {% if section.settings.logo %}
    {% assign image_size = section.settings.logo.width %}
    "logo": {{ section.settings.logo | image_url: width: image_size | prepend: "https:" | json }},
  {% endif %}
  "sameAs": [
    {{ settings.social_twitter_link | json }},
    {{ settings.social_facebook_link | json }},
    {{ settings.social_pinterest_link | json }},
    {{ settings.social_instagram_link | json }},
    {{ settings.social_tumblr_link | json }},
    {{ settings.social_snapchat_link | json }},
    {{ settings.social_youtube_link | json }},
    {{ settings.social_vimeo_link | json }}
  ],
  "url": {{ shop.url | append: page.url | json }}
}
</script>
{%- endcomment smartseo_integration_end_meta_data -%}
{% if request.page_type == 'index' %}
  {% assign potential_action_target = shop.url | append: routes.search_url | append: "?q={search_term_string}" %}
  {%- comment smartseo_integration_begin_meta_data -%}
  <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "name": {{ shop.name | json }},
      "potentialAction": {
        "@type": "SearchAction",
        "target": {{ potential_action_target | json }},
        "query-input": "required name=search_term_string"
      },
      "url": {{ shop.url | append: page.url | json }}
    }
  </script>
{%- endcomment smartseo_integration_end_meta_data -%}
{% endif %}

 

 Thank you

Replies 0 (0)