Я новичок в Wordpress, и мне нужно преобразовать PSD в тему Wordpress. Для этого я скачал голую WordPress тему, чтобы начать с, и я пытался добавить свой собственный стиль CSS в function.php следующим образом:Добавление таблицы стилей в Wordpress
function naked_scripts() {
// get the theme directory style.css and link to it in the header
wp_enqueue_style('main-style', get_template_directory_uri() . '/style/main.css');
wp_enqueue_style('responsive-style', get_template_directory_uri() . '/style/responsive.css');
wp_enqueue_style('bootstrap-style', get_template_directory_uri() . '/style/bootstrap.min.css');
// add fitvid
wp_enqueue_script('jquery-js', get_template_directory_uri() . '/js/jquery.js', array('jquery'), '1.10.2', true);
// add theme scripts
wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '3.0.3', true);
}
add_action('wp_enqueue_scripts', 'naked_scripts'); // Register this fxn and allow Wordpress to call it automatcally in the header
, но в браузере я не получил мой стиль, и я свою ошибку :
GET http://rota.alwaysdata.net/wp-content/themes/theme1/style/main.css?ver=4.1
что такое ver = 4.1 ??
http://underscores.me/ - это лучшее место для установки tempalte wordrpess, чем внесение изменений в соответствии с вашим шаблоном PSD. –