我想创建一个全角背景颜色,以放在我网站上一个页面的子部分后面。类似于此设计中 BG 为灰色的“我们的价值观”部分:https : //www.w3schools.com/bootstrap/trybs_theme_company_full.htm
我的主题在页眉中声明 .container 并在页脚中关闭该 .container。
我要编辑的页面如下所示
<div class="content-wrap">
<div class="blog-top">test text - no bg color</div>
<!--This is where I want the full-width background color to start-->
<div id="primary" class="content-area content-area-arch<?php echo $zillah_sidebar_show !== true ? ' content-area-with-sidebar' : ''; ?>">
<main id="main" class="site-main" role="main">
<?php zillah_hook_index_top(); ?>
<?php
/*Setting up our custom query (In here we are setting it to show 12 posts per page and eliminate all sticky posts) */
$paged = ( get_query_var('paged') …Run Code Online (Sandbox Code Playgroud)