所以我激活了我的定制主题,它可以很好地工作,所有的动画和一切,但身体内容显示了错误的元素。它显示了所有的标准小部件,如最近的帖子等。我去customiser删除了所有这些小部件,只留下了空白的正文部分。但我的主题仍然应该显示一些段落和注册表单,这是行不通的。最后,我删除了仪表板中的所有页面,发布更改后,我的完整主题出现了,但现在没有页脚,页面上的动画不再工作。也没有错误。我不明白是什么导致了这种奇怪的行为。我使用索引。顺便说一下,php文件位于主题文件夹中。
我尝试恢复所有页面并发布,但现在即使在重置仪表板中的所有设置后,它仍然不会显示我主页的页脚。我完全迷路了。
我的问题是,为什么在删除仪表板上的所有页面之前,先删除我的索引。php显示了所有的页眉和页脚,但没有正文内容,但在删除页面后,我得到了页眉、正文内容,但没有页脚和损坏的动画?
页php
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<?php
while ( have_posts() ) : the_post();
get_template_part( \'template-parts/content\', \'page\' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();
索引。php
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<div class="container">
<div class="row">
<div class="pastumti">
<div class="about col-xl-6 col-lg-6 col-sm-12">
<h1>About</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="rules col-xl-6 col-lg-6 col-sm-12">
<h1>Rules</h1>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
</div></div>
</div>
</div>
<div id="register" class="register">
<div class="container dydis">
<div class="row">
<div class="col-lg-12 cen">
<div class="regform">
<div class="forma">
<h2 style="text-align: center; color: #E45E5D; font-weight: 700;">Register for quiz</h2>
<form action="index.php" method="post">
<input type="text" placeholder="Enter Email" name="email_contact" required>
<input type="text" placeholder="Enter full name" name="fullname_contact" required>
</div>
<button type="submit" name="submit_contact" class="signupbtn">Start quiz</button>
</form>
<?php
if (isset($_POST[\'submit_contact\'])) {
$email = $_POST[\'email_contact\'];
$full = $_POST[\'fullname_contact\'];
global $wpdb;
$result = $wpdb->get_results(\'SELECT email FROM `wp_register`\');
foreach ($result as $key) {
$key->email;
};
if ($key->email == $email) {
exit();
}else {
$wpdb->insert(\'wp_register\', array(\'name\' => $full, \'email\' => $email));
header:("Location: index.php?success");
}
}else {
exit();
}
?>
</div>
</div>
</div>
</div>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();
页脚。php
<footer id="contacts">
<div class="footer" id="footer">
<div class="container">
<div class="row">
<div class="col-lg-2 col-md-2 col-sm-4 col-xs-6">
<h3> Site Map </h3>
<ul>
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( \'Primary Menu\', \'okindk\' ); ?></button>
<?php
wp_nav_menu( array(
\'theme_location\' => \'menu-1\',
\'menu_id\' => \'primary-menu\',
) );
?>
</nav><!-- #site-navigation -->
</ul>
</div>
<div class="col-lg-2 col-md-2 col-sm-4 col-xs-6">
<h3> Contacts </h3>
<ul>
<li> <a href="#"> Number: 000000 </a> </li>
<li> <a href="#"> Email: [email protected] </a> </li>
<li> <a href="#"> Address: No tell </a> </li>
<li> <a href="#"> CVR: 0000000 </a> </li>
</ul>
</div>
<div class="col-lg-2 col-md-2 col-sm-4 col-xs-6">
<h3> Lorem Ipsum </h3>
<ul>
<li> <a href="#"> Lorem Ipsum </a> </li>
<li> <a href="#"> Lorem Ipsum </a> </li>
<li> <a href="#"> Lorem Ipsum </a> </li>
<li> <a href="#"> Lorem Ipsum </a> </li>
</ul>
</div>
<div class="col-lg-2 col-md-2 col-sm-4 col-xs-6">
<h3> Lorem Ipsum </h3>
<ul>
<li> <a href="#"> Lorem Ipsum </a> </li>
<li> <a href="#"> Lorem Ipsum </a> </li>
<li> <a href="#"> Lorem Ipsum </a> </li>
<li> <a href="#"> Lorem Ipsum </a> </li>
</ul>
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 ">
<h3> Subscribe for news </h3>
<ul>
<li>
<div class="input-append newsletter-box text-center">
<form class="" action="includes/email.php" method="post">
<input type="text" class="full text-center" placeholder="Email " name="ema">
<button name="submit" class="btn bg-gray" type="submit"> Subscribe <i class="fa fa-long-arrow-right"> </i> </button>
</form>
</div>
</li>
</ul>
<ul class="social">
<li> <a href="#"> <i class=" fa fa-facebook"> </i> </a> </li>
<li> <a href="#"> <i class="fa fa-twitter"> </i> </a> </li>
<li> <a href="#"> <i class="fa fa-google-plus"> </i> </a> </li>
<li> <a href="#"> <i class="fa fa-pinterest"> </i> </a> </li>
<li> <a href="#"> <i class="fa fa-youtube"> </i> </a> </li>
</ul>
</div>
</div>
<!--/.row-->
</div>
<!--/.container-->
</div>
<!--/.footer-->
<div class="footer-bottom">
<div class="container">
<p class="pull-left"> Copyright © 2017 Jonas Tamosevicius </p>
</div>
</div>
<!--/.footer-bottom-->
</footer>
</body>
</html>
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>