如何在wordpress中将页面标题置于特色图片之上?
如何在wordpress中将页面标题置于特色图片之上?我希望页面标题和页面内容置于特色图片之上。 请建议。您应该在图片和标题中使用如何在wordpress中将页面标题置于特色图片之上?,wordpress,Wordpress,如何在wordpress中将页面标题置于特色图片之上?我希望页面标题和页面内容置于特色图片之上。 请建议。您应该在图片和标题中使用标签;使用此代码: <?php /* * Template Name: yourtie */ get_header(); ?> <section id="cir-content-area" role="main"> <div class="container"> <div class="row">
标签;使用此代码:
<?php
/*
* Template Name: yourtie
*/
get_header();
?>
<section id="cir-content-area" role="main">
<div class="container">
<div class="row">
<div class="col-md-12">
<?php while ( have_posts() ) : the_post(); ?>
<?php $featured_img_url = get_the_post_thumbnail_url($post->ID, 'full'); ?>
<div class="col-md-12" style="background:url('<?php echo $featured_img_url; ?>') no-repeat scroll center center / cover">
<?php the_title(); ?>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>
请将您的代码发布到您想要更改的地方或更多详细信息?很抱歉,我没有。我刚刚创建了一个页面模板,现在我想进行上述更改。请帮助发布模板代码。在这里<代码>你能给我看一张图片吗?你想如何显示它?谢谢,但这似乎不起作用。我实际上想把页面标题和内容放在感觉饱和的图像上,就像这样;