我正在将wordpress博客嵌入到html页面中,并按照步骤成功添加了我的网站www.srougi的页眉和页脚。商业/灵魂斗士/博客。但现在我需要把我的单曲风格化。php,即当用户单击文章标题时显示完整文章的页面。我在下面添加了一些命令,这些命令应该会带来自定义的页眉和页脚,因为我已经将页眉样式化了。php和页脚。php。但它完全没有配置,也没有风格。谁能帮帮我吗?非常感谢。
看我的单曲。php代码:
<?php
global $OLDCAR_VAN;
get_header();
?>
<!-- ************************* BLOG ARTICLES ************************* -->
<div class="single-post-page grid-12">
<?php while (have_posts()) : the_post(); ?>
<!-- SINGLE BLOG ARTICLE -->
<article id="post-<?php the_ID();?>" <?php post_class("single-blog-article");?>>
<!-- BLOG ARTICLE HEADER -->
<div class="blog-article-header media">
<div class="<?php echo format_icon();?>"></div>
<div class="bd">
<h1 class="blog-article-title"><a href="<?php the_permalink();?>" title="<?php echo esc_attr(get_the_title());?>" rel="bookmark"><?php the_title();?></a></h1>
<?php echo van_posted_on();?>
</div>
</div>
<!-- BLOG ARTICLE CONTENT -->
<div class="blog-article-content rich-content">
<?php van_format_content();?>
<?php wp_link_pages(\'before=<div class="van-pagenavi">&after=</div>\');?>
<div class="clearfix"></div>
</div>
<div class="taglist">
<?php the_tags(\'<strong>\'.__(\'Tags\',\'OldCar\').\':</strong> \', \'\' , \'\'); ?>
</div>
<div class="pagination">
<span class="nav-previous alignleft"><?php previous_post_link( \'%link\', __( \'← Previous Post\', \'OldCar\' ) ); ?></span>
<span class="nav-next alignright"><?php next_post_link( \'%link\', __( \'Next Post →\', \'OldCar\' ) ); ?></span>
<div class="clearfix"></div>
</div>
</article>
<?php endwhile;?>
<!-- COMMENTS -->
<?php comments_template(); ?>
</div><!-- END GRID-12 -->
</div><!-- END CONTAINER -->
<?php get_footer();?>
最合适的回答,由SO网友:Charles Clarkson 整理而成
问题似乎在于您对这些样式表的调用方式:
<!-- Libs CSS -->
<link rel="stylesheet" href="../css/bootstrap.css">
<link rel="stylesheet" href="../vendor/flexslider/flexslider.css" media="screen" />
<link rel="stylesheet" href="../vendor/fancybox/jquery.fancybox.css" media="screen" />
<!-- Theme CSS -->
<link rel="stylesheet" href="../css/theme.css">
<link rel="stylesheet" href="../css/theme-elements.css">
<!-- Current Page Styles -->
<link rel="stylesheet" href="../vendor/revolution-slider/css/settings.css" media="screen" />
<link rel="stylesheet" href="../vendor/revolution-slider/css/captions.css" media="screen" />
<link rel="stylesheet" href="../vendor/circle-flip-slideshow/css/component.css" media="screen" />
<!-- Custom CSS -->
<link rel="stylesheet" href="../css/custom.css">
<!-- Skin -->
<link rel="stylesheet" href="../css/skins/skin.css">
<!-- Responsive CSS -->
<link rel="stylesheet" href="../css/bootstrap-responsive.css" />
<link rel="stylesheet" href="../css/theme-responsive.css" />
<!-- Favicons -->
<link rel="shortcut icon" href="../img/favicon.ico">
<!-- Head Libs -->
<script src="../vendor/modernizr.js"></script>
从主页上,
../
添加
http://www.srougi.biz/soulfighter/
到每个样式表路径。
在里面this single.php page, ../
添加http://www.srougi.biz/soulfighter/blog/2013/10/10/
到样式表路径。由于样式表不在该目录中,因此它们不会加载。
您没有显示用于生成这些的代码<link>s
, 但我敢打赌你没有enqueue 他们