WebsiteBaker Support (2.13.x) > General Help & Support
Template question 1
applepie:
Why is the fontawesome for the new twitter x icon does not show? From what I understand the code is
<i class="fa-brands fa-x-twitter"></i>
Nothing came up at all when I used the code above. Anyone has the answer?
applepie:
I found the answer for fa fa x-Twitter. The font in the codes need updating. Can someone tell me how do I add menu links at the footer and with own layout id?
Thanks
sternchen8875:
https://help.WebsiteBaker.org/en/designer-guide/multiple-menus.php
applepie:
--- Quote from: sternchen8875 on October 03, 2023, 10:10:28 AM ---https://help.WebsiteBaker.org/en/designer-guide/multiple-menus.php
--- End quote ---
Maybe I am not making myself clear. I would like the same menu on the header and footer but different CSS id. To create $menu[2] = 'Foot-Navigation'; it would mean my footer menu will have different page. On the admin I can only assign my menu to top or footer. Is that correct?
sternchen8875:
i understand...
a simple example.....
you've a div like this around the menu-call
--- Code: ---<div class="topmenu">
<?php //show_menu(); ?>
<?php show_menu2(1,SM2_ROOT, SM2_CURR+1, SM2_TRIM,'<li><a href="[url]" class="[class]" title="[page_title]">[menu_title]</a>', '</li>',
'<ul>', '</ul>','','', 0);
?>
</div>
--- End code ---
copy this menu-code and use a new & different id or class like this for the footermenu
--- Code: ---<div class="footermenu">
<?php //show_menu(); ?>
<?php show_menu2(1,SM2_ROOT, SM2_CURR+1, SM2_TRIM,'<li><a href="[url]" class="[class]" title="[page_title]">[menu_title]</a>', '</li>',
'<ul>', '</ul>','','', 0);
?>
</div>
--- End code ---
if you use a extented version of the menu code like this
--- Code: ---<div class="w3-right w3-hide-small" id="nav" style="margin-right:20px!important;">
<?php
$sItemOpen = '<li class="lev[level] [if(level==0){toplevel w3-border-right w3-large }else{w3-border-0}] w3-hide-small [class]"><a href="[url]" class="[class]"><span>[menu_title]</span></a>';
echo show_menu2(
$aMenu = 1,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_ALL,
$aOptions = SM2_ALL|SM2_PRETTY|SM2_BUFFER,
$aItemOpen = $sItemOpen,
$aItemClose = '</li>',
$aMenuOpen = '<ul style="max-width:250px;">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = '<ul id="header_menu" class="menu w3-white">'
);
?>
</div>
--- End code ---
see the ID in the last line ($aTopMenuOpen). Use there a different ID instead of ul id="header_menu"
and in you CSS, you need two definitions, for every class or ID
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version