Hey everyone, I'm currently working on setting up a featured post within a Bootstrap nav-pill that includes categories. The goal is to display 5 contents from the selected category in two separate divs and designate the first article as the featured one.
The issue I'm facing is with the second $tab_content
displaying the
<div class="col-md-6 col-sm-12 col-lg-5">
multiple times, causing it not to align properly.
Here's how it should look:
<div class="col-md-6 col-sm-12 col-lg-5"> 5 contents in here </div>
Edit: The first tab_content, which represents the first article, should go inside this structure:
<div class="col-md-6 col-sm-12 col-lg-7"></div>
The second tab_content, which displays 5 articles, should be contained within this layout:
<div class="col-md-6 col-sm-12 col-lg-5"></div>
Below are the corresponding codes for reference:
[Code snippet provided here]
This code setup can be used in the following way:
<div class="row">
<?php require_once('modules/tabs.php'); ?>
<ul class="nav nav-tabs nav-tabs-line">
<?php echo $tab_menu; ?>
</ul>
<div class="tab-content">
<?php echo $tab_content; ?>
</div>
</div>
I appreciate any assistance or guidance you may offer. Thank you!