一、详细介绍
AZJ主题是一款基于WordPress开发的双端独立的WordPress游戏应用下载主题。功能上没有一点多余没用的代码,可以说是专门为了下载站量身打造的WordPress主题。SEO优化上下足了功夫,可以说在SEO方面超越了目前99.9%WordPress主题。性能优化上也是相当的棒,目前使用阿里云99一年的活动机器,10万数据能达到秒开。
1、首先在宝塔安装WordPress程序,如果连这一步都不会的,建议找我付费一次性全部搭建好整站。
2、安装好WordPress后,在上面下载主题,上传到/wp-content/themes/这个目录。
3、上传压缩包,解压后,就会看到2个主题文件夹,azj/azj_m。然后登录网站后台,选择azj主题使用。
4、然后开始跟着步骤填写主题设置了。
移动端问题
1、首先绑定移动端域名,并且解析,如果www有ssl,移动端也必须要有。
2、添加代码:在文件底部
wp-config.php中修改数据库配置信息
二、效果展示
1.部分代码
代码如下(示例):
<div class="module">
<div class="module-title">
<div class="title">
<span><?php echo get_cat_name(get_apps_id()); ?></span>
</div>
</div>
<div class="module-apps">
<?php
$args = array(
'category' => get_apps_id(),
'numberposts' => 12,
);
$posts = get_posts($args);
foreach ($posts as $key=>$post) {
setup_postdata($post);
$category = get_the_category();
?>
<div class="item">
<a class="icon br12" href="<?php the_permalink(); ?>">
<img src="<?php echo get_icon(); ?>" alt="<?php the_title() ?>" />
</a>
<div class="title uk-text-truncate">
<a href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
</div>
</div>
<?php } wp_reset_postdata();?>
</div>
</div>
<div class="module">
<div class="module-title">
<div class="title">
<span><?php echo get_cat_name(get_news_id()); ?></span>
</div>
</div>
<div class="category-news">
<?php
$args = array(
'category' => get_news_id(),
'numberposts' => 5,
);
$posts = get_posts($args);
foreach ($posts as $key=>$post) {
setup_postdata($post);
$category = get_the_category();
?>
<div class="item">
<a class="thumb" href="<?php the_permalink(); ?>">
<img src="<?php echo post_thumbnail_src(); ?>" alt="<?php the_title(); ?>" uk-cover>
</a>
<div class="uk-flex-cover">
<div class="title line-2">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
<div class="info">
<span class="cat"><?php echo $category[0]->name; ?></span>
<span class="time">时间:<?php the_time('m-d') ?></span>
</div>
</div>
</div>
<?php } wp_reset_postdata();?>
</div>
</div>
2.效果图展示