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