gpt4 book ai didi

css - 我的 WordPress 博客的 2 个问题

转载 作者:行者123 更新时间:2023-11-28 17:09:37 25 4
gpt4 key购买 nike

http://www.florence.inspiremeland.gridhosted.co.uk/

  1. 我尝试了所有可能的方法来从我的单个帖子中删除我的特色图片,同时在您访问我的主页时保留图片。

首先我尝试使用以下代码:

.single-post .attachment-post-thumbnail {
display: none;
}

与我的 style.css 或单个帖子文件中的许多其他文件一起没有任何成功。

这是在我的 single.php 文件中:

<?php get_header(); ?>

<div class="container">

<div id="content">

<div id="main" <?php if(get_theme_mod('sp_post_layout') == 'full') : ?>class="fullwidth"<?php endif; ?>>

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

<?php get_template_part('content'); ?>

<?php endwhile; ?>

<?php endif; ?>
<?php if(get_theme_mod('sp_post_layout') == 'full') : else : ?><?php get_sidebar(); ?><?php endif; ?>
</div>


<?php get_footer(); ?>

如果您能帮忙,请告诉我您需要我的 CSS 中的哪一部分?我真的很想解决这个问题:(

2.

当我访问我的博客文章时,边栏位于内容下方而不是侧面,我的网站尚未上线,所以我无法向您展示,但如果您能提供帮助,我将不胜感激。

贝蒂

最佳答案

查看 includes/post-formats/中的 standard.php,您应该会找到类似 <?php the_post_thumbnail('thumbnail'); }?> 的内容您可以将其删除。

关于css - 我的 WordPress 博客的 2 个问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29526632/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com