位置:SEO博客 > wordpress > 如何给wordpress博客加面包屑导航?

如何给wordpress博客加面包屑导航?

在前面的文章中,介绍了面包屑导航,这里进一步给大家介绍如何在wordpress的文章页上加面包屑导航
进入wordpress的后台,点左侧外观下面的编辑,然后在右侧的模板主题文件那里找到single.php,在代码

<div id="content">

下面添加:

位置:<a href="<?php bloginfo('url') ?>/" ><?php bloginfo('name') ?></a> >
<?php the_category(',') ?> > <?php the_title() ?></a>

本博客只设置了内容页,如果大家要在其他页面的可以参考这个方法设置。

本站文章除注明转载外,均为本站原创
转载请注明:文章转载自:郑义文SEO博客
本文标题:如何给wordpress博客加面包屑导航?
本文地址:http://www.zhengyiwen.com/wordpress-breadcrumb-trail.html

16 Comments

  1. Posted 2010年06月7日 at 11:44 | Permalink

    原来是这样啊 不错不错~

    [回复]

  2. Posted 2010年06月7日 at 13:46 | Permalink

    发现比较难看,怎么控制样式?

    [回复]

    郑义文 回复:

    给这个代码加个div,然后用css控制这个div的显示样式

    [回复]

    袁勇 回复:

    嘎嘎,搞定了·~得里格得~

    [回复]

  3. Posted 2010年06月7日 at 14:51 | Permalink

    哈哈,和我也做个链接呗,新站,PR现在为0行不?
    http://www.weiaijia.com

    [回复]

    郑义文 回复:

    抱歉,目前本博客暂不考虑友链!

    [回复]

  4. Posted 2010年06月7日 at 17:00 | Permalink

    现在就去试试

    [回复]

  5. Posted 2010年06月8日 at 10:34 | Permalink

    学到了,谢谢博主分享

    [回复]

  6. Posted 2010年06月8日 at 17:58 | Permalink

    再多搞点这种实用性的好东西啊··

    [回复]

  7. Posted 2010年06月11日 at 10:07 | Permalink

    多谢博主分享,顶下先。

    [回复]

  8. Posted 2010年06月12日 at 21:08 | Permalink

    既简短又实用!

    [回复]

  9. Posted 2010年08月2日 at 20:22 | Permalink

    呵呵 搜索 正要用~~拿走了~

    [回复]

  10. Posted 2010年11月14日 at 12:11 | Permalink

    我也想用wordpress搭建一个seo博客,不知道用ixweb美国空间做,百度会不会收录

    [回复]

    郑义文 回复:

    会收录!我在ixwebhosting上一共建了45个站,全部都收录。

    [回复]

  11. Posted 2010年11月25日 at 21:06 | Permalink

    面包屑导航很重要吗?
    主导航有不就可以了吗?

    [回复]

    郑义文 回复:

    面包屑导航在多级栏目的时候会显得很重要,如果栏目只有一级,那么有跟没有差不多!

    [回复]

  12. Posted 2010年12月16日 at 13:04 | Permalink

    这个对我来说太好的了!!
    我正好找这方面的内容···赞一个!!
    个人感觉,面包屑很好,个人很喜欢!!
    我想蜘蛛,也挺喜欢的好像··呵呵!

    [回复]

    郑义文 回复:

    这个面包屑导航在目录层次比较多的时候才能真正的体现他的作用。

    [回复]

  13. Posted 2011年03月24日 at 19:54 | Permalink

    面包屑导航 最利于seo的

    [回复]

  14. Posted 2011年04月15日 at 09:20 | Permalink

    计划不错,顶你

    [回复]

  15. Posted 2011年06月21日 at 12:31 | Permalink

    看了后学会了怎么添加,谢谢分享。

    [回复]

  16. Posted 2011年08月23日 at 18:21 | Permalink

    真不错 搜藏了

    [回复]

Post a Comment

Your email is never shared. Required fields are marked *

*
*