Declare Doctype??

Vvel
Explorer
74 2 10

Had an seo report saying that alot of my pages dont have doctype declared? How do i fix this? Do i put <doctype > html5<doctype/)

0 Likes
Speedimize
Shopify Partner
213 35 93

Hi @Vvel 

Aibek is here from Speedimize.io

Usually the doctype is declared by default. In any case, you can specify as below in theme.liquid.

https://www.w3schools.com/tags/tag_doctype.asp

In short, at the beginning of theme.liquid, write:

<!DOCTYPE html>

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION
0 Likes
Vvel
Explorer
74 2 10

I know how add it but I  don't know what specific file to put it in. My report says 87 pages dont have it. Homepage, collections,  blogs, and pages.

0 Likes
Speedimize
Shopify Partner
213 35 93

Can you share with us URL of your shop? 

 

So we can check this and find solution for you. 

 

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION
0 Likes
Vvel
Explorer
74 2 10

inniti wear dot com

0 Likes
Speedimize
Shopify Partner
213 35 93

Hey @Vvel 

https://prnt.sc/126twcu -doctype not specified. Usually, in each theme, the doctype is specified at the beginning of theme.liquid. At the very beginning of the theme.liquid doctype is not registered.

theme.liquid is a global layout. Enter the doctype in this file.

If you wish, we can help you with this. 

We can send you request via Shopify Partners. 

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION
0 Likes
Vvel
Explorer
74 2 10

<!doctype html> is has already been there.

this is what the couple of first lines look like...

{% render 'breadcrumbs' %}
{% capture content %}
<!DOCTYPE html>
<html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="{{ shop.locale }}"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="{{ shop.locale }}"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="{{ shop.locale }}"> <![endif]-->
<!--[if IE 9 ]><html class="ie ie9" lang="{{ shop.locale }}"> <![endif]-->
<!--[if (gte IE 10)|!(IE)]><!--><html lang="{{ shop.locale }}"> <!--<![endif]-->
<head>
<!-- Added by AVADA SEO Suite -->
{% include 'avada-seo' %}
<!-- /Added by AVADA SEO Suite -->

<meta name="google-site-verification" content="3D5I-_AxcVOTa5N8-Aa80SFKTQxzl3GkWsFxoD68G0M" />
<meta charset="utf-8">
<meta http-equiv="cleartype" content="on">
<meta name="robots" content="index,follow">

0 Likes