不折腾会死,知言主题,折腾记录。

流年
流年
管理员
320
文章
408千
浏览
1 1,615字数 1009阅读3分21秒

导航下子导航的选择样式。

不折腾会死,知言主题,折腾记录。   不想要子菜单的选择效果可以删除以下css

  1. .pri-nav ul ul {  
  2. border-bottom: 4px solid #428bca;  
  3. }  

修改顶级菜单为不可点击的方法

添加一个自定义链接的菜单,然后删除网址,把其他子菜单拖到下面即可就变成不可点击的状态了!

删除面包屑导航里面的文章标题

删除面包屑的文章标题,把标题移到文章上方。 后台外观编辑,CTRL+F找到 breadcrumbs.php  然后找到以下代码删除!

  1. <h1 class-"entry-title">  
  2.  <?php if ( has_post_format('audio') ): ?><i class="fa fa-headphones"></i>&nbsp;<?php endif; ?>  
  3.  <?php if ( has_post_format('aside') ): ?><i class="fa fa-pen"></i>&nbsp;<?php endif; ?>  
  4.  <?php if ( has_post_format('chat') ): ?><i class="fa fa-comments-o"></i>&nbsp;<?php endif; ?>  
  5.  <?php if ( has_post_format('gallery') ): ?><i class="fa fa-picture-o"></i>&nbsp;<?php endif; ?>  
  6.  <?php if ( has_post_format('image') ): ?><i class="fa fa-camera"></i>&nbsp;<?php endif; ?>  
  7.  <?php if ( has_post_format('link') ): ?><i class="fa fa-link"></i>&nbsp;<?php endif; ?>  
  8.  <?php if ( has_post_format('quote') ): ?><i class="fa fa-quote-left"></i>&nbsp;<?php endif; ?>  
  9.  <?php if ( has_post_format('status') ): ?><i class="fa fa-bullhorn"></i>&nbsp;<?php endif; ?>  
  10.  <?php if ( has_post_format('video') ): ?><i class="fa fa-video-camera"></i>&nbsp;<?php endif; ?><?php the_title(); ?></h1>  

然后在模板函数functions.php里面搜索<div id="single-meta"> 在上面添加添加:

  1. <div class="entry-bt" id="single-metato">  
  2. <h1 class-"entry-title">  
  3.  <?php if ( has_post_format('audio') ): ?><i class="fa fa-headphones"></i>&nbsp;<?php endif; ?>  
  4.  <?php if ( has_post_format('aside') ): ?><i class="fa fa-pen"></i>&nbsp;<?php endif; ?>  
  5.  <?php if ( has_post_format('chat') ): ?><i class="fa fa-comments-o"></i>&nbsp;<?php endif; ?>  
  6.  <?php if ( has_post_format('gallery') ): ?><i class="fa fa-picture-o"></i>&nbsp;<?php endif; ?>  
  7.  <?php if ( has_post_format('image') ): ?><i class="fa fa-camera"></i>&nbsp;<?php endif; ?>  
  8.  <?php if ( has_post_format('link') ): ?><i class="fa fa-link"></i>&nbsp;<?php endif; ?>  
  9.  <?php if ( has_post_format('quote') ): ?><i class="fa fa-quote-left"></i>&nbsp;<?php endif; ?>  
  10.  <?php if ( has_post_format('status') ): ?><i class="fa fa-bullhorn"></i>&nbsp;<?php endif; ?>  
  11.  <?php if ( has_post_format('video') ): ?><i class="fa fa-video-camera"></i>&nbsp;<?php endif; ?><?php the_title(); ?></h1></div>  

然后添加CSS 到  样式表 (style.css)

  1. .entry-bt h1 {  
  2. positionrelative;  
  3. background#f8f8f8;  
  4. font-size16px;  
  5. font-size: 1.8rem;  
  6. line-height40px;  
  7. text-aligncenter;  
  8. padding: 0 20px;  
  9. border-left5px solid #568abc;  
  10. border-right5px solid #568abc;}  

具体自己喜欢什么样式 自己修改即可

 

修改timthumb.php支持外链

打开timthumb.php,搜索 define ('ALLOW_ALL_EXTERNAL_SITES', 把后面的参数false改成 TRUE

  1. define ('ALLOW_EXTERNAL', TRUE);  
  2. define ('ALLOW_ALL_EXTERNAL_SITES', TRUE);<span style="text-indent: 2em;">  

 

博客最后更新:2015-11-22
流年
  • 本文由 流年 发表于2015年8月10日 14:10:18
  • 除非特殊声明,本站文章均为原创,需要转载,请留言说明!
    • 米粒博客
      米粒博客 4

      等有空 我也折腾一下这个主题

    匿名

    发表评论

    匿名网友
    :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
    确定

    拖动滑块以完成验证