The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Mainmenu / Navigation

4 posters

Go down

In progress Mainmenu / Navigation

Post by DemonWreckage December 28th 2014, 7:08 pm

Hello,

I was looking around for the Mainmenu html in the templates, but I haven't been able to find it. Do you know which category it's under? I've been through all under General with the search tag "mainmenu, menu and submenu" but no luck.

@Using Invision

Thanks in advance.
DemonWreckage
DemonWreckage
Forumember

Male Posts : 424
Reputation : 243
Language : English
Location : Denmark

https://help.forumotion.com/

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by SLGray December 28th 2014, 7:46 pm

overall_header


Mainmenu / Navigation Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51464
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by DemonWreckage December 28th 2014, 7:49 pm

SLGray wrote:overall_header

Hi SLG,

I already looked in there and I can't find the menu. Here's the template file:

Overall_Header:

*Edit
So I found the submenu, which I didn't before. However I couldn't find what I was looking for, which is the spaces " " which should be in the template file as well.
DemonWreckage
DemonWreckage
Forumember

Male Posts : 424
Reputation : 243
Language : English
Location : Denmark

https://help.forumotion.com/

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by _Twisted_Mods_ December 28th 2014, 8:26 pm

nav bar is pre generated you cant edit it

Code:
<div id="submenu">
<ul>
<li class="clearfix">{GENERATED_NAV_BAR}</li>
</ul>
</div>


can i ask what your trying to achieve perhaps theirs another way
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by DemonWreckage December 28th 2014, 8:45 pm

Hi,

Well. even though I've found the submenu, I haven't found the mainmenu. The reason i'm looking for it, is to remove a space or two which is the "&nbsp;"

Mainmenu / Navigation Mainme11
DemonWreckage
DemonWreckage
Forumember

Male Posts : 424
Reputation : 243
Language : English
Location : Denmark

https://help.forumotion.com/

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by _Twisted_Mods_ December 29th 2014, 1:04 am

yea we cant get to that .. if you goto index_body at top it say {javascript}

thats where the toolbar is

if you show me the spots you want to remove spaces from i can help you remove them with script or css
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by Ange Tuteur December 29th 2014, 2:03 am

Hi,

Replace this portion in your overall_header :
Code:
                  <li class="clearfix">{GENERATED_NAV_BAR}</li>

By this :
Code:
                  <li id="main-navigation" class="clearfix">{GENERATED_NAV_BAR}</li>
                                                <script type="text/javascript">(function() { var n = document.getElementById('main-navigation'); n.innerHTML = n.innerHTML.replace(/(&nbsp;|<\/a>\s)/g,'') })();</script>

It should remove the whitespace after the links.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by DemonWreckage January 6th 2015, 9:37 pm

Hey Ange,

Currently I only want two of them removed, the first two actually. These spaces showed up because I hid the Calender and Faq on the navbar. I couldn't remove them via the controlpanel for whatever reason Forumotion made it not possible. Smile
DemonWreckage
DemonWreckage
Forumember

Male Posts : 424
Reputation : 243
Language : English
Location : Denmark

https://help.forumotion.com/

Back to top Go down

In progress Re: Mainmenu / Navigation

Post by Ange Tuteur January 7th 2015, 3:07 am

In that case you could try replacing the navigation mentioned in my last post with this :
Code:
<li id="main-navigation" class="clearfix">{GENERATED_NAV_BAR}</li>
<script type="text/javascript">//<![CDATA[
$('#main-navigation').html($('#main-navigation').html().replace(/Calendar<\/a> &nbsp;/,'Calendar</a>').replace(/FAQ<\/a> &nbsp;/,'FAQ</a>'));
//]]></script>

Although if the member is using a different language the Calendar replacement wont work for them.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum