Functions.php는 스타일 시트 또는 JQuery와
functions.php 문제로 실행하고
작동하지 워드 프레스 그것은이 방법 - 수행
style.css
@import url('css/bootstrap.css');
@import url('css/font-awesome.css');
나는 동일한 기능을 수행 할 functions.php를 사용할 수있는 이해를, 그래서 사용자 정의 함수를 작성하고 this-처럼하려고 노력 :
functions.php
<?php
/* Theme setup */
require_once('wp_bootstrap_navwalker.php');
/* Add bootstrap support to the Wordpress theme*/
function theme_add_bootstrap() {
wp_enqueue_style('bootstrap-css', get_template_directory_uri().'/css/bootstrap.css');
wp_enqueue_style('style-css', get_template_directory_uri().'/css/font-awesome.css');
wp_enqueue_script('bootstrap-js', get_template_directory_uri().'/js/bootstrap.js', array(), '3.0.0', true);
}
add_action('wp_enqueue_scripts', 'theme_add_bootstrap');
?>
이것은 작동하지 않습니다. functions.php도 wp jquery 또는 bootstrap.js를로드하지 않습니다.
누구든지이 문제에 대해 어떤 문제를 제기 할 수 있습니까? 나는 이제까지 감사 할 것입니다. 이것은 어린이 테마가 아니라 사용자 정의 테마입니다.
워드 프레스는 이미 jQuery를 수동으로 ("JQuery와")'wp_enqueue_script을 할 수 있도록 필요 큐에 넣 없다' – henrywright
감사합니다 그리고 당신은 내 스타일 시트를 도와 줄 수 있습니까? –
예, [이 대답] (http://wordpress.stackexchange.com/a/48448/22599)을보십시오 – henrywright