@Vladimir96

Где ошибка в подключении стилей?

Делаю как в уроке https://www.youtube.com/watch?v=wrfsOYs5J7Q&list=P...
На пятнадцатой минуте добавляю стили но с верху не исчезает навигация .Навигация выводиться в виде столба.
Код functions
<?php 

add_action( 'wp_enqueue_scripts', 'wptuts_scripts' );
// add_action('wp_print_styles', 'theme_name_scripts'); // можно использовать этот хук он более поздний
function wptuts_scripts() {
	wp_enqueue_style( 'style-css', get_stylesheet_uri() );
	wp_enqueue_style( 'bootstrap', get_stylesheet_uri() .'/css/bootstrap.min.css' );
	wp_enqueue_style( 'animate', get_stylesheet_uri() .'/css/animate.min.css' );
	wp_enqueue_style( 'font-awesome', get_stylesheet_uri() .'/css/font-awesome.min.css' );
	//wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
}
?>

код индекс
<?php get_header();?>
<section class="error_top_bg secondary-bg">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<div class="top_banner">
						<div class="category_m">
							<h2> App News</h2>
							
							<div class="breadcrumb_m">
									  <ul class="breadcrumbs_m" id="breadcrumbs_m">
									  <li><a href="#"><i class="fa fa-home" aria-hidden="true"></i> Home </a></li>
									  <li> / </li>
									  <li><a href="#">  Blog</a></li>
									  </ul>
							</div>
						</div>
				
				</div>
			</div>
		</div>
	</div>
</section>



<section class="post_blog_bg primary-bg">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
			
        	<div class="col-md-8">
				<article class="blog_post">
					<h4> <a href="#"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. </a> </h4>
						
						<div class="blog_category">
							<ul> 
								<li> <a href="#">Company news, </a> </li>
								<li> <a href="#">Fresh releases </a> </li>
							</ul>
						</div>	
						
						<div class="blog_text">
							<ul>
								<li> | </li>
								<li> <a href="#"> Post By : Admin   </a> </li>
								<li> | </li>
								<li>  On : 20 may 2016 </li>
							</ul>
						</div>
						
						<div class="blog_post_img">
							<a href="#"> <img src="images/blog_post_img1.png" alt="image"> </a>
						</div>
						
						<p> Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. </p>
					
						<a href="#"> Continue reading <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a>
						
					
				</article>
				
				<article class="blog_post">
					<h4> <a href="#"> There are many variations of passages of Lorem Ipsum available. </a> </h4>
						
						<div class="blog_category">
							<ul> 
								<li> <a href="#">Company news, </a> </li>
								<li> <a href="#">Fresh releases </a> </li>
							</ul>
						</div>	
						
						<div class="blog_text">
							<ul>
								<li> | </li>
								<li> <a href="#"> Post By : Admin   </a> </li>
								<li> | </li>
								<li>  On : 20 may 2016 </li>
							</ul>
						</div>
						
						<div class="blog_post_img">
							<a href="#"> <img src="images/blog_post_img2.png" alt="image"> </a>
						</div>
						
						<p> There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary. </p>
					
						<a href="#"> Continue reading <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a>
					</article>
					
				<article class="blog_post">
					<h4> <a href="#"> All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks </a></h4>
						
						<div class="blog_category">
							<ul> 
								<li> <a href="#">Company news, </a> </li>
								<li> <a href="#">Fresh releases </a> </li>
							</ul>
						</div>	
						
						<div class="blog_text">
							<ul>
								<li> | </li>
								<li> <a href="#"> Post By : Admin   </a> </li>
								<li> | </li>
								<li>  On : 20 may 2016 </li>
							</ul>
						</div>
						
						<div class="blog_post_img">
							<a href="#">	<img src="images/blog_post_img3.png" alt="image"> </a>
						</div>
						
						<p> All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc. </p>
					
						<a href="#"> Continue reading <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a>
				</article>						
				
				<div class="next_page">
          			<ul class="page-numbers">
						<li><span class="page-numbers current">1</span></li>
						<li><a href="#" class="page-numbers">2</a></li>
						<li><a href="#" class="page-numbers">3</a></li>
						<li><a href="#" class="page-numbers">4</a></li>
						<li><a href="#" class="next page-numbers">Next</a></li>
					</ul>
       			 </div>
			
			</div>	
			
				
			
				
				
<?php get_sidebar();?>
			</div>
		</div>
	</div>
</section>


<?php get_footer();?>


</body>
  • Вопрос задан
  • 59 просмотров
Решения вопроса 1
artzolin
@artzolin Куратор тега WordPress
php, WordPress разработка сайтов artzolin.ru
get_stylesheet_directory_uri()
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы