在菜单中为当前页面的标题加下划线 [英] Underline the Current Page's Title in menu

查看:228
本文介绍了在菜单中为当前页面的标题加下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有!


我正在为使用这个Wordpress主题的朋友建立一个网站:

http://www.felixkrusch.de/about


^当你通过访问该网站可以看到,当前页面的标题总是在主菜单上加下划线。


在代码中,该代码显示菜单:

展开 | 选择 | Wrap | 行号

解决方案

将链接放入元素(li,div,span,... )包含current_page_item类。

展开 | 选择 | Wrap | 行号


我可能错了,但我认为不行。


我希望下划线在访问者当前浏览的页面上仅显示 。如果我添加上面的代码,是不是总是应用下划线?


谢谢,


< blockquote class =post_quotes>

必须有一些方法可以为其他网址调整此代码吗?

展开 | 选择 | Wrap | 行号

Hey all!

I''m building a site for a friend which uses this Wordpress theme:

http://www.felixkrusch.de/about

^ As you can see by visting the site, the title of the current page is always underlined on the main menu.

In the code the menu is displayed by this code:

Expand|Select|Wrap|Line Numbers

解决方案

put your link in an element (li, div, span, ...) that contains the current_page_item class.

Expand|Select|Wrap|Line Numbers


I might be wrong but I don''t think that would work.

I want the underline to appear only on the page currently being browsed by the visitor. If I added the above bit of code, would it not always apply the underline?

Thanks,



There must be some way to adapt this code for other URLs?

Expand|Select|Wrap|Line Numbers


这篇关于在菜单中为当前页面的标题加下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆