【发布时间】:2017-09-02 20:25:16
【问题描述】:
我在这里很困惑。我对 Wordpress 非常熟悉,但是,我无法让我的网站主页显示我的主页模板中当前的 HTML 和 PHP 等。
我已经进入设置 - 阅读主页并将主页设置为“主页”下的静态主页,您可以想象它具有我要显示的 HTML/PHP 的页面模板。
我想知道是否有人知道影响主页的任何其他外部因素,并且在我的其他页面上引入的模板实际上正在工作 - 这很奇怪。
我已经使用 Chrome 多次检查了浏览器上的 DOM,但是没有显示任何 div 等。
这是目前首页的代码:
<?php
/* Template Name: Home Page Template */
?>
<?php get_header(); ?>
<div class="header_banner">
<div class="image_content">
<div class="image">
<video playsinline="" autoplay="" muted="" loop="" poster="" onplaying="this.controls=false">
<source src="<?php echo get_stylesheet_directory_uri(); ?>/videos/video_background.mp4">
Your browser does not support the video element.
</video>
</div>
</div>
<div class="main_content center center_absolute">
<h1>I create and design websites.</h1>
<h2>I specialise in HTML, CSS, jQuery and Wordpress.</h2>
</div>
<div class="center_scroll">
<div class="scroll">
<i class="fa fa-chevron-down" aria-hidden="true"></i>
</div>
</div>
</div>
<?php get_footer();
【问题讨论】:
标签: wordpress