Twitter bootstrap 引导下拉菜单下的链接将不起作用

Twitter bootstrap 引导下拉菜单下的链接将不起作用,twitter-bootstrap,hyperlink,dropdownbox,Twitter Bootstrap,Hyperlink,Dropdownbox,我这里有个山姆的问题。。我正在使用Wordpress主题,我正在尝试为导航栏上的语言选项添加一个下拉菜单。下面是我在header.php链接中的代码:有人能帮我吗 这是我的密码: <header id="masthead" class="<?php echo of_get_option('header_layout'); ?>"> <div class="mid-content clearfix"> <div id="site-logo"> <

我这里有个山姆的问题。。我正在使用Wordpress主题,我正在尝试为导航栏上的语言选项添加一个下拉菜单。下面是我在header.php链接中的代码:有人能帮我吗

这是我的密码:

<header id="masthead" class="<?php echo of_get_option('header_layout'); ?>">
<div class="mid-content clearfix">
<div id="site-logo">
<?php if ( get_header_image() ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
    <img src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>">
</a>
<?php else:?>
    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php endif; ?>
</div>

<nav id="site-navigation" class="main-navigation">
<div class="menu-toggle"><?php _e( 'Menu', 'accesspress_parallax' ); ?></div>

    <?php 
    $sections = of_get_option('parallax_section');
    if(of_get_option('enable_parallax')==1 && of_get_option('enable_parallax_nav')==1 && !empty($sections) ): ?>
    <ul class="nav single-page-nav">
    <?php
    $home_text = of_get_option('home_text');
        if(of_get_option('show_slider')== "yes" && !empty($home_text)) : ?>
            <li class="current"><a href="<?php echo esc_url( home_url( '/' ) ); ?>#main-slider"><?php echo esc_attr($home_text); ?></a></li>
        <?php endif;

        foreach ($sections as $single_sections): 
            if($single_sections['layout'] != "action_template" && $single_sections['layout'] != "blank_template" && $single_sections['layout'] != "googlemap_template" && !empty($single_sections['page'])) :
            $title = get_the_title($single_sections['page']); ?>
            <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>#section-<?php echo $single_sections['page']; ?>"><?php echo $title; ?></a></li>
            <?php 
            endif;
        endforeach; ?>


              <li role="presentation" class="dropdown">
                <button class="dropdown-toggle lng_cc" data-toggle="dropdown" href="#" role="button" aria-expanded="false">
                  Jezik <span class="caret"></span>
                </button>
                <ul class="dropdown-menu dropdpwn_cc" role="menu">
                <li class="lang_lili">
                    <a href="http://clubberschoice.eu"><img src="http://clubberschoice.eu/wp-content/uploads/2015/04/Croatia.png"/> hrvatski </a>
                </li>
                <li class="lang_lili">
                    <a href="http://clubberschoice.eu/en/"><img src="http://clubberschoice.eu/wp-content/uploads/2015/04/United-Kingdom.png"/> engleski </a>
                </li>

                </ul>
              </li>

</ul>

我解决了这个问题。单击时,问题处于“当前”状态。这阻碍了链接操作

所以我在谷歌上搜索:然后我插入以下代码:

$('ul li#cc_nav_lang').click(function(){ $('ul li#cc_nav_lang').removeClass('current');});

$('li.dropdown ul').find('a').on('click', function() {
window.location = $(this).attr('href');});
现在正在工作。你可以在www.clubbershoice.eu/en/查看它的工作原理。
谢谢大家!

请同时发布您的下拉列表和lang_lili css代码…主导航ul-li.lang_-lili{边框底部:1px实心EEE;填充:5px 0;}。主导航ul-ul-li.lang_-lili:hover>a{颜色:D95B4C;边框半径:5px;}我没有下拉列表,我一定忘了从代码中删除它。