导航下子导航的选择样式。
- .pri-nav ul ul {
- border-bottom: 4px solid #428bca;
- }
修改顶级菜单为不可点击的方法
添加一个自定义链接的菜单,然后删除网址,把其他子菜单拖到下面即可就变成不可点击的状态了!
删除面包屑导航里面的文章标题
删除面包屑的文章标题,把标题移到文章上方。 后台外观编辑,CTRL+F找到 breadcrumbs.php 然后找到以下代码删除!
- <h1 class-"entry-title">
- <?php if ( has_post_format('audio') ): ?><i class="fa fa-headphones"></i> <?php endif; ?>
- <?php if ( has_post_format('aside') ): ?><i class="fa fa-pen"></i> <?php endif; ?>
- <?php if ( has_post_format('chat') ): ?><i class="fa fa-comments-o"></i> <?php endif; ?>
- <?php if ( has_post_format('gallery') ): ?><i class="fa fa-picture-o"></i> <?php endif; ?>
- <?php if ( has_post_format('image') ): ?><i class="fa fa-camera"></i> <?php endif; ?>
- <?php if ( has_post_format('link') ): ?><i class="fa fa-link"></i> <?php endif; ?>
- <?php if ( has_post_format('quote') ): ?><i class="fa fa-quote-left"></i> <?php endif; ?>
- <?php if ( has_post_format('status') ): ?><i class="fa fa-bullhorn"></i> <?php endif; ?>
- <?php if ( has_post_format('video') ): ?><i class="fa fa-video-camera"></i> <?php endif; ?><?php the_title(); ?></h1>
然后在模板函数functions.php里面搜索<div id="single-meta">
在上面添加添加:
- <div class="entry-bt" id="single-metato">
- <h1 class-"entry-title">
- <?php if ( has_post_format('audio') ): ?><i class="fa fa-headphones"></i> <?php endif; ?>
- <?php if ( has_post_format('aside') ): ?><i class="fa fa-pen"></i> <?php endif; ?>
- <?php if ( has_post_format('chat') ): ?><i class="fa fa-comments-o"></i> <?php endif; ?>
- <?php if ( has_post_format('gallery') ): ?><i class="fa fa-picture-o"></i> <?php endif; ?>
- <?php if ( has_post_format('image') ): ?><i class="fa fa-camera"></i> <?php endif; ?>
- <?php if ( has_post_format('link') ): ?><i class="fa fa-link"></i> <?php endif; ?>
- <?php if ( has_post_format('quote') ): ?><i class="fa fa-quote-left"></i> <?php endif; ?>
- <?php if ( has_post_format('status') ): ?><i class="fa fa-bullhorn"></i> <?php endif; ?>
- <?php if ( has_post_format('video') ): ?><i class="fa fa-video-camera"></i> <?php endif; ?><?php the_title(); ?></h1></div>
然后添加CSS 到 样式表 (style.css)
- .entry-bt h1 {
- position: relative;
- background: #f8f8f8;
- font-size: 16px;
- font-size: 1.8rem;
- line-height: 40px;
- text-align: center;
- padding: 0 20px;
- border-left: 5px solid #568abc;
- border-right: 5px solid #568abc;}
具体自己喜欢什么样式 自己修改即可
修改timthumb.php支持外链
打开timthumb.php
,搜索 define ('ALLOW_ALL_EXTERNAL_SITES'
,
把后面的参数false
改成 TRUE
!
- define ('ALLOW_EXTERNAL', TRUE);
- define ('ALLOW_ALL_EXTERNAL_SITES', TRUE);<span style="text-indent: 2em;">
局域网 1F
等有空 我也折腾一下这个主题