I've encountered an issue while trying to implement a mixitup filter gallery on my bootstrap template.
It seems to work fine when loaded under the first active tab-pane, but fails to work properly when placed under the second or third tab-pane. Could there be a conflict between the bootstrap .active class causing this?
Here is the main navigation menu for the tab panes:
<div class="list-group">
<a href="#landing" role="tab" data-toggle="tab" class="list-group-item active">Home<i class="pull-xs-right fa fa-home"></i></a>
<a href="#about" role="tab" data-toggle="tab" class="list-group-item">About me <i class="pull-xs-right fa fa-star"></i></a>
<a href="#services" role="tab" data-toggle="tab" class="list-group-item">What I do <i class="pull-xs-right fa fa-suitcase"></i></a>
<a href="#portfolio" role="tab" data-toggle="tab" class="list-group-item">Portfolio <i class="pull-xs-right fa fa-photo"></i></a>
<a href="#blog" role="tab" data-toggle="tab" class="list-group-item">Blog <i class="pull-xs-right fa fa-comment"></i></a>
<a href="#contact" role="tab" data-toggle="tab" class="list-group-item">Contact <i class="pull-xs-right fa fa-phone"></i></a>
</div>
Let's take a look at the mixitup gallery implementation:
<div role="tabpanel" class="tab-pane fade" id="portfolio">
<nav class="navbar navbar-light bg-faded">
<div class="container">
<ul class="nav navbar-nav" id="filters">
<li class="nav-item"><a class="filter nav-link" data-filter=".plugins, .logo, .web">All</a>
</li>
<li class="nav-item"><a class="filter nav-link" data-filter=".plugins">App / Plugins</a>
</li>
<li class="nav-item"><a class="filter nav-link" data-filter=".logo">Logo Design</a>
</li>
<li class="nav-item"><a class="filter nav-link" data-filter=".web">Web Design</a>
</li>
<li class="nav-item">
<div class="fb-like" data-href="https://facebook.com/ydd.ninja" data-layout="button" data-action="like" data-show-faces="false" data-share="false"></div>
</li>
</ul>
</div>
</nav>
<div class="content">
<div id="portfoliolist">
<div class="portfolio logo" data-cat="logo">
<div class="portfolio-wrapper">
<img src="assets/images/bg.jpg" alt="" />
<div class="label">
<div class="label-text">
<a href="#" class="text-title">Bird Document</a>
<span class="text-category">Logo</span>
</div>
<div class="label-bg"></div>
</div>
</div>
</div>
<div class="portfolio web" data-cat="web">
<div class="portfolio-wrapper">
<img src="assets/images/dp2.jpg" alt="" />
<div class="label">
<div class="label-text">
<a href="#" class="text-title">Bird Document</a>
<span class="text-category">Web Design</span>
</div>
<div class="label-bg"></div>
</div>
</div>
</div>
<div class="portfolio plugins" data-cat="plugins">
<div class="portfolio-wrapper">
<img src="assets/images/1.jpg" alt="" />
<div class="label">
<div class="label-text">
<a href="#" class="text-title">Bird Document</a>
<span class="text-category">App Design</span>
</div>
<div class="label-bg"></div>
</div>
</div>
</div>
</div>
<!--//portfolio-list-->
</div>
</div>
The provided code above may not function as intended, however, if the tab-pane with ID "portfolio" is set as active during the initial load, all portfolio navigation should work without any issues and the gallery will filter correctly.
<div role="tabpanel" class="tab-pane fade in active" id="portfolio">
Thank you in advance for any assistance that can be provided on resolving this issue.