【发布时间】:2019-11-04 10:24:03
【问题描述】:
我从 w3layouts 下载了一个模板。我希望这个模板显示为 wordpress 主题。我已经将 index.html 转换为 index.php 并且 style.css 和 index.php 都在同一个目录中,我还使用了 php 的 bloginfo() 函数。这是我的 index.php 的 head 部分
<link rel="icon" href="<?php bloginfo('img/favicon.png')?>" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="<?php bloginfo('bootstrap.min.css')?>" />
<!-- animate CSS -->
<link rel="stylesheet" href="<?php bloginfo('animate.css')?>" />
<!-- owl carousel CSS -->
<link rel="stylesheet" href="<?php bloginfo('owl.carousel.min.css')?>" />
<!-- themify CSS -->
<link rel="stylesheet" href="<?php bloginfo('themify-icons.css')?>" />
<!-- flaticon CSS -->
<link rel="stylesheet" href="<?php bloginfo('flaticon.css')?>" />
<!-- font awesome CSS -->
<link rel="stylesheet" href="<?php bloginfo('magnific-popup.css')?>" />
<!-- swiper CSS -->
<link rel="stylesheet" href="<?php bloginfo('slick.css')?>" />
<!-- style CSS -->
<link rel="stylesheet" href="<?php bloginfo('style.css')?>" />
我已将我的模板文件夹放在 wordpress 的主题文件夹中。 index.php 和 style.css 都在 css 文件夹中。我是wordpress的新手。提前致谢
【问题讨论】:
标签: wordpress