0
任何人都可以告訴我功能圖片是如何出現在博客頁面上的。我在index.php中嵌入了我的博客,並且經歷了各種論壇,但無法讓圖像出現。我使用下面的代碼 -背景圖片不出現在Wordpress中的博客頁面4.75
<div id="main" >
<section class="feature-image feature-image-default-alt" >
<h1 class="page-title">Blog</h1>
</section>
<!-- BLOG CONTENT
================================================== -->
<div class="container">
<div class="row" id="primary">
<main id="content" class="col-sm-8" role="main">
<?php
if (have_posts()) :
if (is_home() && ! is_front_page()) : ?>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php
endif;
/* Start the Loop */
while (have_posts()) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part('template-parts/content', get_post_format());
endwhile;
the_posts_navigation();
else :
get_template_part('template-parts/content', 'none');
endif; ?>
</main><!--content-->
<!-- SIDEBAR
================================================== -->
<aside class="col-sm-4 asidebar">
<?php get_sidebar();?>
</aside>
</div><!--primary-->
</div><!--container-->
感謝@Cyril!它工作 – user8242904
嗨@ user8242904,很高興它的工作。你能接受答案是否正確? – Cyril