Solved: 4 Years, 11 Months ago Menu
#1
Solved: 4 Years, 11 Months ago
Hello,

How do you create custom menu to other links such as to steam or battlelog or amazon in themes?
Reply
#2
Solved: 4 Years, 11 Months ago
If you like to add another link to the header menu, edit the Header Templates in ACP
"header" and search for this list elements:
<ul class="menu top_links">
{$menu_portal}
{$menu_search}
{$menu_memberlist}
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
</ul>

Add another link to the menu list:
<li><a href="https://domain.tld/site.html" class="" target="_blank">Link Title</a></li>

If you want to place this link anywhere else, find the template and just insert:
<a href="https://domain.tld/site.html" class="" target="_blank">Link Title</a>

[ExiTuS]
Reply
#3
Solved: 4 Years, 11 Months ago
<div id="container">
<div id="content">

<div class="menu">
<ul>
<li id="nav-forums"> <a href="{$mybb->settings['bburl']}/index.php"><i style="font-size: 12px;" class="fa fa-comments fa-fw"></i> Forums</a></li>
<li id="nav-search"> <a href="{$mybb->settings['bburl']}/search.php"><i style="font-size: 12px;" class="fa fa-search fa-fw"></i> {$lang->toplinks_search}</a></li>
<li id="nav-member"> <a href="{$mybb->settings['bburl']}/memberlist.php"><i style="font-size: 12px;" class="fa fa-users fa-fw"></i> Members</a></li>

<ul>
</div>
<div id="extraslink_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/stats.php" class="popup_item">Forum stats</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/showteam.php" class="popup_item">Show team</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=getnew" class="popup_item">{$lang->welcome_newposts}</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=getdaily" class="popup_item">{$lang->welcome_todaysposts}</a>
</div>
<div class="popup_item_container">
</div>
<li><a href="https://battlelog.battlefield.com/bf4/servers/show/PC/25da0943-6c63-4b7a-8346-eef0e16c1b3c/BoNG-BROTHERHOOD-OF-N00BS-Premium-Maps-N0-Kill/" class="" target="_blank">Battlefield Server</a></li>

</div>

does not work
Reply
#4
Solved: 4 Years, 11 Months ago
Your code is not correct and may cause visual faults.
Keep the structure and mind opening/closing tags:

<ul>
<li>...</li>
<li>...</li>
</ul>

<div>
...
</div>

[ExiTuS]
Reply
#5
Solved: 4 Years, 11 Months ago
(2020-02-20, 12:05 PM)[ExiTuS] Wrote: Your code is not correct and may cause visual faults.
Keep the structure and mind opening/closing tags:

<ul>
  <li>...</li>
  <li>...</li>
</ul>

<div>
...
</div>

[ExiTuS]

which area do i put the link is it between the <li>...</li>
Reply
#6
Solved: 4 Years, 11 Months ago
Yes!

[ExiTuS]
Reply
#7
Solved: 4 Years, 11 Months ago
Working thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)