【发布时间】:2013-06-17 09:46:06
【问题描述】:
我想要一个像这样的简单 wordpress 主题:
我在 Photoshop 中创建了这个,所以我可以给你看。 我怎样才能做到这一点?我只想有一个标题和显示为缩略图的帖子。
【问题讨论】:
标签: wordpress themes thumbnails
我想要一个像这样的简单 wordpress 主题:
我在 Photoshop 中创建了这个,所以我可以给你看。 我怎样才能做到这一点?我只想有一个标题和显示为缩略图的帖子。
【问题讨论】:
标签: wordpress themes thumbnails
目前 wordpress 需要一些基本文件才能运行。您需要根据所需的主题对其进行编辑。
wp-content > themes > your folder中创建一个文件夹
header.php, footer .php , style.css, page.php
pages 并享受!【讨论】:
HTML 中创建您的网站,然后在header.php 中破坏其组件,如css 在style.css 中的css。
你好,你可以从这里学习 wordpress 设计:-
http://codex.wordpress.org/Site_Design_and_Layout
或
http://rockablethemes.com/wordpress-themes-tutorials/
但我会建议你购买高级主题
或
从这里搜索免费主题
http://wordpress.org/themes/search.php?q=video
如果您自己创建主题,我建议您询问您卡在哪里的确切问题。
这里是你需要在 index.php 中添加代码的代码
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post box">
<h2><?php the_title(); ?></h2>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(215,152), array('class' => 'thumbnail')); ?></a>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php posts_nav_link(' ','<img src="'.get_template_directory_uri().'/images/prevl.png" alt="Next" border="0" class="left" align="right" />','<img src="'.get_template_directory_uri().'/images/nextl.png" alt="Next" border="0" align="right" class="right" />'); ?> </div>
<?php endif; ?>
谢谢
【讨论】: