header php загружается в теле
-
проблема в том что то что находится в header.php отображается в боди на сайте, подскажите как это решить нашел на просторах интернета что надо регистрировать попробовал не получилось регистрировать пробовал так файле функций
wp_register_style( 'my-style', // хэндл get_stylesheet_uri(), // URL стилевой таблицы array( 'style' ), // массив зависимых стилей 'null', // номер версии 'all' // CSS медиа-тип ); wp_enqueue_style( 'my-style' ); function mytheme_enqueue_style() { wp_enqueue_style( 'mytheme-style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_style' );
а вот мой хидер
<!doctype html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=<?php bloginfo('charset'); ?>"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="viewport" content="width=device-width, user-scalable=no" > <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' /> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/reset.css" /> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css" /> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/font-awesome.min.css" /> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/googleapis.css" type='text/css' /> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/animate.css" type='text/css' /> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/fonts/fonts.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" charset="utf-8" src="/callme/js/callme.js"></script> <script type='text/javascript' src='<?php bloginfo('template_url'); ?>/js/jquery.js'></script> <!--<script type="text/javascript" charset="utf-8" src="<?php bloginfo('template_url'); ?>/js/jquery.tubular.1.0.js"></script>--> <!--<script type='text/javascript' src='<?php bloginfo('template_url'); ?>/js/wow.js'></script>--> <script type='text/javascript' src='<?php bloginfo('template_url'); ?>/js/TweenMax.min.js'></script> <script type='text/javascript' src='<?php bloginfo('template_url'); ?>/js/jquery.gsap.min.js'></script> <script type='text/javascript' src='<?php bloginfo('template_url'); ?>/js/index.js'></script> <!--<script> new WOW().init(); </script>--> </head> <body> <div id="wrapper"> <!--<script> $().ready(function() { $('#wrapper').tubular({videoId: 'uxoZsx862-M'}); // id вашего видео на YouTube. }); </script>--> <video autoplay loop muted class="bgvideo" id="bgvideo"> <source src="/video.mp4" type="video/mp4"></source> </video> <div id="tab"></div> <div id="logo"> <div class="content"> <a href="/index.php"><img src="<?php bloginfo('template_url'); ?>/images/logo.png"></a> </div> </div> <div id="menu"> <div class="content"> <button id="showHideMenu" class="cmn-toggle-switch cmn-toggle-switch__htx"> <span>toggle menu</span> </button> <!--<a href="#" id="showHideMenu">Показать/Скрыть</a>--> <nav id="main_menu" class="main-navigation"> <? wp_nav_menu(array('menu' => 'top-menu', 'menu_class' => 'top-menu')); ?> </nav> </div> </div> <!--<div class="white-diamond"> </div>--> <div style="clear:both;"></div>
подскажите где я не так что делаю, абсолютно не знаю вордпрес только учу
Просмотр 3 ответов — с 1 по 3 (всего 3)
Просмотр 3 ответов — с 1 по 3 (всего 3)
- Тема «header php загружается в теле» закрыта для новых ответов.