Navbar modules position
Posted: Thu May 07, 2026 9:07 pm
Hi,
I'm changing the position of navbar icons, and I can't find how to set it correctly
With icons left, center and right, I don't have problem, but...
If I choose only at the right... are positioned at the left
If I choose only center and right... are positioned left and right
If I choose only at the center... are positioned at the left
adding me-auto and ms-auto seems to works correctly, but no changes for center
Maybe someone with more experencie on bootstrap can give me a hand to make this works
I'm changing the position of navbar icons, and I can't find how to set it correctly
With icons left, center and right, I don't have problem, but...
If I choose only at the right... are positioned at the left
If I choose only center and right... are positioned left and right
If I choose only at the center... are positioned at the left
adding me-auto and ms-auto seems to works correctly, but no changes for center
Code: Select all
<?php
if ($Template->has_blocks('navbar_modules_left')) {
echo '<ul class="navbar-nav me-auto">' . PHP_EOL;
echo $Template->get_blocks('navbar_modules_left');
echo '</ul>' . PHP_EOL;
}
if ($Template->has_blocks('navbar_modules_center')) {
echo '<ul class="navbar-nav">' . PHP_EOL;
echo $Template->get_blocks('navbar_modules_center');
echo '</ul>' . PHP_EOL;
}
if ($Template->has_blocks('navbar_modules_right')) {
echo '<ul class="navbar-nav ms-auto">' . PHP_EOL;
echo $Template->get_blocks('navbar_modules_right');
echo '</ul>' . PHP_EOL;
}
?>