我正在对博客当前显示在wordpress页面右侧边栏中的方式进行一些更改。
现在有一个大图像、标题、摘录和“阅读更多”按钮我只希望博客部分在左边显示一个小图片,在右边显示标题(下面提供了图片模型)我已经可以删除摘录和阅读更多按钮我正在努力研究如何创建CSS,并将其添加到下面的PHP代码中
我不是PHP的高手,但我可以根据需要进行一些更新。以下是我目前掌握的代码:
<div class="blogwrapper">
<?php the_post_thumbnail( \'full\' ); ?>
<h4><?php the_title(); ?></h4>
</div>
以下是HTML结构:
<div class="sidebarblog customsidebar customsidewds">
<div class="blogwrapper">
<img width="5184" height="3456" src="https://website.com/wp-
content/uploads/2016/01/img1000.jpg" class="attachment-full size-full wp-
post-image" alt="" srcset="https://website.com/wp-
content/uploads/2016/01/img1000.jpg 5184w, https://website.com/wp-
content/uploads/2016/01/img1000_300x200.jpg 300w, https://website.com/wp-
content/uploads/2016/01/img1000.jpg-768x512.jpg 768w,
https://website.com/wp-content/uploads/2016/01/img1000.jpg-1024x683.jpg
1024w" sizes="(max-width: 5184px) 100vw, 5184px">
<h4>This is a sample blog title with text and more text</h4>
</div>
<div class="blogwrapper">
<img width="1170" height="750" src="https://website.com/wp-
content/uploads/2016/01/image1001.jpg" class="attachment-full size-full wp-
post-image" alt="" srcset="https://website.com/wp-
content/uploads/2016/01/image1001.jpg 1170w, https://website.com/wp-
content/uploads/2016/01/image1001.jpg-300x192.jpg 300w,
https://website.com/wp-content/uploads/2016/01/image1001.jpg-768x492.jpg
768w, https://website.com/wp-content/uploads/2016/01/image1001.jpg-
1024x656.jpg 1024w" sizes="(max-width: 1170px) 100vw, 1170px">
<h4>This is another sample blog title title with more and more text</h4>
</div>
</div>