Не работает functions.php, легкий вопрос помоему
-
Создаю дочернюю тему с файлом стилей style.css
/* Theme name: Lander Description: Тема Author: Shyngys Version: 0.1 Template: simone */ @import url('../simone/style.css');
работает, потом создал front-page.php, тоже грузится.
создаю файл functions.php<?php /** * The functions file for the Lander child theme */ function lander_scripts() { if ( is_front_page() ) { wp_enqueue_style( 'lander-styles', get_stylesheet_directory_uri() . '/lander-style.css'); } } add_action('wp_enqueue_scripts', 'lander-scripts');
и вот он не загружает файл lander-style.css
Просмотр 1 ответа (всего 1)
Просмотр 1 ответа (всего 1)
- Тема «Не работает functions.php, легкий вопрос помоему» закрыта для новых ответов.