• Скачал Bootstrap пробую подключить но не как не выходить пишет вот такую ошибку — https://fotki.yandex.ru/next/users/sawenkov-o-s/album/429223/view/970752

    Вот сам код в шаблона header

    <?php
    /**
     * Шаблон шапки (header.php)
     * @package WordPress
     * @subpackage your-clean-template
     */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); // вывод атрибутов языка ?>>
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); // кодировка ?>">
    	<?php /* RSS и всякое */ ?>
    	<meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
    	<link rel="alternate" type="application/rdf+xml" title="RDF mapping" href="<?php bloginfo('rdf_url'); ?>">
    	<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php bloginfo('rss_url'); ?>">
    	<link rel="alternate" type="application/rss+xml" title="Comments RSS" href="<?php bloginfo('comments_rss2_url'); ?>">
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    	<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); // абсолютный путь до темы ?>/style.css">
      <!-- Bootstrap -->
      <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); // абсолютный путь до темы ?>/css/bootstrap.css" rel="stylesheet">
    
        <!--[if lt IE 9]>
    	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    	<![endif]-->
    	<title><?php typical_title(); // выводи тайтл, функция лежит в function.php ?></title>
    	<?php wp_head(); // необходимо для работы плагинов и функционала ?>
    </head>
    <body <?php body_class(); // все классы для body ?>>
    <div class="container">
      <h1>hello!!!</h1>
    </div>
    
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.js"></script>

Просмотр 3 ответов — с 1 по 3 (всего 3)
  • Модератор Юрій

    (@yube)

    1. Прочтите, как правильно подключать javascript: Справочник по функциям/wp enqueue script « WordPress Codex

    2. Не используйте относительные адреса. Я имею в виду вот это: src="js/bootstrap.js"

    Подключить Bootstrap к WordPress теме непросто:

    • надо интегрировать в тему bootstrap-css-js с getbootstrap.com
    • подключить их в файле functions.php
    • создать Bootstrap меню в т.ч. подключить специальный walker class
    • подключить иконный шрифт Awesome
    • и пр.

    Наберите в поисковой системе
    integrate bootstrap into wordpess theme
    и оцените сложность проблемы.

    Готовые темы bootstrap
    Есть пустые — твори, что хочешь

Просмотр 3 ответов — с 1 по 3 (всего 3)
  • Тема «Помогите подключить Bootstrap» закрыта для новых ответов.