【问题标题】:How can i create a theme only with a title an thumbnail?我怎样才能创建一个只有标题和缩略图的主题?
【发布时间】:2013-06-17 09:46:06
【问题描述】:

我想要一个像这样的简单 wordpress 主题:

我在 Photoshop 中创建了这个,所以我可以给你看。 我怎样才能做到这一点?我只想有一个标题和显示为缩略图的帖子。

【问题讨论】:

    标签: wordpress themes thumbnails


    【解决方案1】:

    目前 wordpress 需要一些基本文件才能运行。您需要根据所需的主题对其进行编辑。

    1. wp-content > themes > your folder中创建一个文件夹
    2. 放一些必要的文件,比如header.php, footer .php , style.css, page.php
    3. 您需要根据您想要的样式对其进行编辑,完成后从管理面板创建pages 并享受!

    【讨论】:

    • 首先在HTML 中创建您的网站,然后在header.php 中破坏其组件,如cssstyle.css 中的css
    【解决方案2】:

    你好,你可以从这里学习 wordpress 设计:-

    http://codex.wordpress.org/Site_Design_and_Layout

    http://rockablethemes.com/wordpress-themes-tutorials/

    但我会建议你购买高级主题

    http://themeforest.net/

    从这里搜索免费主题

    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; ?>
    

    谢谢

    【讨论】:

      猜你喜欢
      • 2016-12-31
      • 2014-06-26
      • 1970-01-01
      • 1970-01-01
      • 2021-05-08
      • 1970-01-01
      • 2017-07-06
      • 2022-01-12
      • 1970-01-01
      相关资源
      最近更新 更多