[英]Wordpress: How to Change Latest Posts Design
I want to change the way my 'latest/recent posts' are displayed. 我想更改“最新/最新帖子”的显示方式。 Currently they are using a very large thumbnail with a large H1 Heading above it.
目前,他们正在使用非常大的缩略图,其上方有一个大的H1标题。
I want to make the thumbnail images smaller into a square dimension, and have both the heading (title) and the text directly to the right of that thumbnail image. 我想将缩略图缩小为正方形尺寸,并且标题(标题)和文本都直接位于该缩略图的右侧。 I'd also like it to be encased in a box/border.
我也希望将其装在盒子/边框中。
I also want to add a "Latest News" or "Whats New" Banner right above my latest/recent posts. 我还想在我的最新/最近帖子的上方添加“最新新闻”或“最新消息”横幅。
Keep in mind I am using Wordpress. 请记住,我正在使用Wordpress。 That being said, which file do I edit/code?
话虽这么说,我要编辑/编码哪个文件? And what are the lines.
还有什么线。
Here is my current post layout/design: http://puu.sh/74mhm.jpg 这是我当前的帖子布局/设计: http : //puu.sh/74mhm.jpg
and Here is a perfect example of my desired result: http://puu.sh/74mj5.jpg 这是我期望的结果的完美示例: http : //puu.sh/74mj5.jpg
Thanks in advance all. 预先谢谢大家。
Cheers! 干杯!
Go to your theme and edit the index.php, this is the file that formats your post list. 转到主题并编辑index.php,这是格式化帖子列表的文件。 Wordpress has a number of ways to format posts though from CSS to the admin console so editing template files should be your last resort.
虽然从CSS到管理控制台,Wordpress有多种格式化帖子的格式,所以编辑模板文件应该是您的最后选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.