简体   繁体   English

WordPress 主题不同宽度

[英]WordPress Theme different width

I am trying to achieve to following design:我正在努力实现以下设计:

在此处输入图像描述

This is what I got so far:这是我到目前为止得到的:

在此处输入图像描述

I'd like to have the bottom images as in my design example.我想在我的设计示例中使用底部图像。

This is, how my single.php looks like.这就是我的 single.php 的样子。 I just can't find a solution that is responsive and works with my design:(我只是找不到响应速度快且适用于我的设计的解决方案:(

<?php get_header(); ?>


<div class="container px-4">
    <div class="flex flex-wrap gap-20">

        <article class="flex-auto w-[800px]">

        <?php if (have_posts()) :
        while (have_posts()) : the_post(); ?>
        <?php the_content(); ?>
        <?php endwhile; endif; ?>

        </article>

        <?php get_sidebar(); ?>

    </div>
</div>


<?php get_footer(); ?>

Do you have an idea?你有想法吗?

One issue is that your bottom image is within the post content itself, and that is sitting next to a sidebar on the right.一个问题是您的底部图像位于帖子内容本身中,并且位于右侧的侧边栏旁边。 That image, or images, won't span the full width of the page if the sidebar is taking up some of that area.如果侧边栏占据了该区域的一部分,则该图像或图像不会跨越页面的整个宽度。 So, those two bottom images would have to be loaded after the post content and after the sidebar to achieve the design you're looking at.因此,必须在帖子内容和侧边栏之后加载这两个底部图像才能实现您正在查看的设计。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM