• Никакой политики на форуме. Иначе - бан!
  • Вопрос без рабочей ссылки на проблему считается риторическим. Без ссылки и скриншота - провокацией!
  • Темы озаглавленные с маленькой буквы или капсом удаляются без предупреждения!

Стили на страницах прогружаются с задержкой в секунды две

lesssa15

Новичок
Интернет-магазин на шаблоне, в шапку добавила виджет по инструкции из статьи http://wpincode.com/kak-dobavlyat-vidzhety-wordpress-v-shapku-sajta/. И вот теперь стили загружаются с задержкой. Подскажите возможные варианты как можно исправить ситуации. Как узнать в чём конкретно глюк?
 

Mofsy

Опытный
Местный
Проблема в том, что в коде темы нарушена структура.
Стили и теги уехали в тег body, хотя должны находится в теге head.
 

lesssa15

Новичок
Проблема в том, что в коде темы нарушена структура.
Стили и теги уехали в тег body, хотя должны находится в теге head.
т.е. я не туда вставила код виджета в header?
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Clean_Commerce
*/

?><?php
/**
* Hook - clean_commerce_action_doctype.
*
* @hooked clean_commerce_doctype - 10
*/
do_action( 'clean_commerce_action_doctype' );
?>
<head>
<?php
/**
* Hook - clean_commerce_action_head.
*
* @hooked clean_commerce_head - 10
*/
do_action( 'clean_commerce_action_head' );
?>

</head>

<body <?php body_class(); ?>>


<?php
/**
* Hook - clean_commerce_action_before.
*
* @hooked clean_commerce_page_start - 10
* @hooked clean_commerce_skip_to_content - 15
*/
do_action( 'clean_commerce_action_before' );
?>

<?php
/**
* Hook - clean_commerce_action_before_header.
*
* @hooked clean_commerce_header_start - 10
*/
do_action( 'clean_commerce_action_before_header' );
?>

<?php
/**
* Hook - clean_commerce_action_header.
*
* @hooked clean_commerce_site_branding - 10
*/
do_action( 'clean_commerce_action_header' );
?>

<?php

if ( is_active_sidebar( 'custom-header-widget' ) ) : ?>
<div id="header-widget-area" class="chw-widget-area widget-area" role="complementary">
<?php dynamic_sidebar( 'custom-header-widget' ); ?>
</div>

<?php endif; ?>
<?php
/**
* Hook - clean_commerce_action_after_header.
*
* @hooked clean_commerce_header_end - 10
*/
do_action( 'clean_commerce_action_after_header' );
?>

<?php
/**
* Hook - clean_commerce_action_before_content.
*
* @hooked clean_commerce_add_breadcrumb - 7
* @hooked clean_commerce_content_start - 10
*/
do_action( 'clean_commerce_action_before_content' );
?>
<?php
/**
* Hook - clean_commerce_action_content.
*/
do_action( 'clean_commerce_action_content' );
?>
<?php wp_head(); ?>
 

Mofsy

Опытный
Местный
т.е. я не туда вставила код виджета в header?
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Clean_Commerce
*/

?><?php
/**
* Hook - clean_commerce_action_doctype.
*
* @hooked clean_commerce_doctype - 10
*/
do_action( 'clean_commerce_action_doctype' );
?>
<head>
<?php
/**
* Hook - clean_commerce_action_head.
*
* @hooked clean_commerce_head - 10
*/
do_action( 'clean_commerce_action_head' );
?>

</head>

<body <?php body_class(); ?>>


<?php
/**
* Hook - clean_commerce_action_before.
*
* @hooked clean_commerce_page_start - 10
* @hooked clean_commerce_skip_to_content - 15
*/
do_action( 'clean_commerce_action_before' );
?>

<?php
/**
* Hook - clean_commerce_action_before_header.
*
* @hooked clean_commerce_header_start - 10
*/
do_action( 'clean_commerce_action_before_header' );
?>

<?php
/**
* Hook - clean_commerce_action_header.
*
* @hooked clean_commerce_site_branding - 10
*/
do_action( 'clean_commerce_action_header' );
?>

<?php

if ( is_active_sidebar( 'custom-header-widget' ) ) : ?>
<div id="header-widget-area" class="chw-widget-area widget-area" role="complementary">
<?php dynamic_sidebar( 'custom-header-widget' ); ?>
</div>

<?php endif; ?>
<?php
/**
* Hook - clean_commerce_action_after_header.
*
* @hooked clean_commerce_header_end - 10
*/
do_action( 'clean_commerce_action_after_header' );
?>

<?php
/**
* Hook - clean_commerce_action_before_content.
*
* @hooked clean_commerce_add_breadcrumb - 7
* @hooked clean_commerce_content_start - 10
*/
do_action( 'clean_commerce_action_before_content' );
?>
<?php
/**
* Hook - clean_commerce_action_content.
*/
do_action( 'clean_commerce_action_content' );
?>
<?php wp_head(); ?>

Ну этого не могу сказать, весь код темы нужно исследовать.
 
Сверху Снизу