Answer the question
In order to leave comments, you need to log in
Why does header content appear in body?
Hi all.
Such a strange thing that on the inner (only inner) pages, the content of the header slides into the body. Everything is fine with the encoding (UTF-8 without BOM). What is it connected with?
CMS: Wordpress
DOM screenshot in browser:
header.php
<!DOCTYPE html>
<html>
<head>
<?php wp_head();?>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!--CSS-->
<link rel="stylesheet" href="<?=$themedata['site']['dirs'];?><?php echo esc_url( get_template_directory_uri() ); ?>/css/fonts.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
<body>
<header>
<div class="header">
<div class="container">
<div class="row">
<div class="col-md-2 col-sm-12 col-xs-12">
<button class="cd-nav-trigger menu-btn"><span class="cd-icon"></span>Раскрыть меню</button>
<span class="btn-cat">Категории</span>
<div class="logo">
<?php if (is_front_page()): ?>
<a href="/">
<span>games</span>
</a>
<?php else: ?>
<a href="/">
<span>games</span>
</a>
<?php endif ?>
</div>
</div>
<div class="col-md-10 col-sm-12 col-xs-12">
<?php get_search_form(); ?>
</div>
</div>
</div>
</div>
</header>
Answer the question
In order to leave comments, you need to log in
We won't understand anything. Maybe the server constructs the page this way, maybe the DOM script changes. More data!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question