Bootstrap navbar活动级drupal [英] Bootstrap navbar active class drupal

查看:298
本文介绍了Bootstrap navbar活动级drupal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将旧网站重建成drupal 7.



我决定使用drupal引导主题,因为我的旧网站也使用引导程序。



添加了活动类,所以已经解决了。现在我坚持一个新的问题,这与默认的块样式有关,我问它这里


I`m rebuilding my old website into drupal 7.

I decided to use the drupal bootstrap theme, because my older website also uses bootstrap.

Bootstrap theme

By default the drupal navbar is included in this theme, but one thing is missing. It doesn't support the active css class. Altough the mouse over works fine, i'do need a way to make links active, depending on what page is visited. So for example if the main page is visited, the class should change into active, like the images shows right here.

I know there are some ways to do this with jquery, but the solution i found don't seem to work on a when i fully change to page. On my old website i added and removed the active class using the url, but since my goal is to make it easy to add and remove pages i don't can come up with an idea to do this.

解决方案

I've found out that the drupal menu_block module adds the active class, so that's been solved. Tough now i`m stuck at a new problem, which has to do with the default block style, i asked it here.

这篇关于Bootstrap navbar活动级drupal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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