Hi
i do not know why but plain <html> opening tag has vanished.
`
<!doctype html >
<!–[if IE 8]> <html class=”ie8″ lang=”en”> <![endif]–>
<!–[if IE 9]> <html class=”ie9″ lang=”en”> <![endif]–>
<!–[if gt IE 8]><!–> <html lang=”it-IT”> <!–<![endif]–>
<head>
rest of hypertext
`
/wp-content/themes/Newspaper/header.php is like
<!doctype html >
<html <?php language_attributes(); ?>>
Can this be caused maybe by the fact I am using a cloud library header?
Any other clue?
This is causing Javascript error:
VM8:1 Uncaught SyntaxError: Unexpected token ‘<‘ (line 1)
Hi,
If you want to add some code in the head of your website, you can do this using this section -> https://i.imgur.com/zcxYm5L.png
Also the theme has now more header.php files.
Now I will try to explain how the header file is working. Our theme has 3 header files, on in theme, one in tagDiv Composer and one in tagDiv Standard Pack, now if the standard pack is enable and you do not use a cloud template then you’ll use the file from standard pack, if this plugin is disable or you use a cloud header from tagDiv Cloud Library then it will be use the file from composer, if both of these are disable will be display the one from theme.
But if you set a header file in child theme as in our guide you can use each header file you want (from composer or standard pack) these will work.
Now in tagDiv Standard Pack are set the default templates and tagDiv Composer is just a builder that can edit pages and cloud templates.
Thank you!
Hi Calin,
I want to try to get rid of
“<!doctype html>”
Since I see a js error
"Uncaught SyntaxError: expected expression, got '<'" at line 1
how can i see the 3 header files you mention?
grep “<\!doctype” -r *
amp/vendor/ampproject/common/src/Dom/Document.php: const HTML_DOCTYPE_REGEX_PATTERN = '#<!doctype\s+html[^>]+?>#si';
amp/vendor/ampproject/common/src/Dom/Document.php: const HTML_STRUCTURE_DOCTYPE_PATTERN = '/^(?<doctype>[^<]*(?>\s*<!--.*?-->\s*)*<!doctype(?>\s+[^>]+)?>)/is';
amp/vendor/ampproject/common/src/Dom/Document.php: // Detect and strip <!doctype> tags.
amp/templates/html-start.php:<!doctype html>
amp/back-compat/templates-v0-3/single.php:<!doctype html>
td-composer/mobile/header-amp.php:<!doctype html >
td-composer/mobile/header.php:<!doctype html >
td-composer/legacy/Newspaper/header.php:<!doctype html >
td-standard-pack/Newspaper/header.php:<!doctype html >
wordfence/views/waf/debug.php:<!doctype html>
wp-mail-smtp/src/Admin/Pages/TestTab.php: <!doctype html>
-
This reply was modified 5 years by
salsero72.