【发布时间】:2023-03-03 22:18:01
【问题描述】:
在我的 WP 主题中,我希望能够定位(将 css 挂在我的 style.css 中)我的 single.php 中的图像和内容。
在 single.php 上,它通过循环将内容放入
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php bnNav_content_nav( 'nav-below' ); ?>
<?php endwhile; // end of the loop. ?>
在 content-single.php 上
<div class="container"
<?php the_content(); ?>
</div>
帖子的内容有图片和文字,但都是在
标签中输出的。我可以将图像定位为能够添加 -margins (混乱但我可以为文本设置不同的边距)但我想为每个添加更多独特的样式
【问题讨论】:
标签: php jquery html css wordpress