最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

child theme - Wordpress Bootstrap Problem

programmeradmin0浏览0评论

I'm having a problem with my theme's compatibility with bootstrap.

So the checkboxes on my website appear double ().

So I enqueued the latest Bootstrap CDN (CSS and Scripts) on my child theme and now the buttons are fixed but the drop down ul doesn't work as intended. Instead of opening the dropdown, it goes to the link.

Here's the dropdown ul code:

<a class="user-link" href="<?php echo $user_link; ?>">
 <span class="user-name"><?php echo $current_user->display_name; ?></span><i class="bb-icon-angle-down"></i>
    <?php echo get_avatar( get_current_user_id(), 35); ?>
</a>

<ul class="sub-menu">
 <li>
  <a class="user-link" href="<?php echo $user_link; ?>">
    <?php echo get_avatar( get_current_user_id(), 35); ?>
        <span>
         <span class="user-name"><?php echo $current_user->display_name; ?></span>
            <?php if( function_exists( 'bp_is_active' ) ) : ?>
                                    <span class="user-mention"><?php echo '@' . bp_activity_get_user_mentionname( $current_user->ID ); ?></span>
                                <?php else : ?>
              <span class="user-mention"><?php echo '@' . $current_user->user_login; ?></span>
            <?php endif; ?>
              </span>
  </a>
 </li>
 <?php do_action( THEME_HOOK_PREFIX . 'header_user_menu_items' ); ?>
</ul>
发布评论

评论列表(0)

  1. 暂无评论