inherit
237817
0
Jul 15, 2017 1:30:54 GMT -8
seaturtle
63
October 2016
seaturtle
|
Post by seaturtle on Apr 5, 2017 3:58:54 GMT -8
Hi all, On the nav bar, it says my forum name but I want it to say something more intuitive like "Navigate"? Is it possible to do this? I have tried playing around with this part under Forum Wrapper but to no avail: <div id="navigation-container"> <div id="navigation-menu" class="ui-helper-clearfix"> <div class="navigation-left"> $[navigation.tree] I am aware there is a plugin called Easy Text Switcher but there seems to be a delay. Upon loading it shows my forum name, and then it switches to whatever I entered in the plugin settings. So it looks a bit silly when it does that. Any help much appreciated!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Apr 5, 2017 8:36:06 GMT -8
Hi all, On the nav bar, it says my forum name but I want it to say something more intuitive like "Navigate"? Is it possible to do this? I have tried playing around with this part under Forum Wrapper but to no avail: <div id="navigation-container"> <div id="navigation-menu" class="ui-helper-clearfix"> <div class="navigation-left"> $[navigation.tree] I am aware there is a plugin called Easy Text Switcher but there seems to be a delay. Upon loading it shows my forum name, and then it switches to whatever I entered in the plugin settings. So it looks a bit silly when it does that. Any help much appreciated! Put this directly above $[header] in your Forum Wrapper template.. <script type="text/javascript"> $('#nav-tree-branch-0>div').find('span').html('Navigation'); </script>
|
|
inherit
237817
0
Jul 15, 2017 1:30:54 GMT -8
seaturtle
63
October 2016
seaturtle
|
Post by seaturtle on Apr 5, 2017 14:24:53 GMT -8
Hi all, On the nav bar, it says my forum name but I want it to say something more intuitive like "Navigate"? Is it possible to do this? I have tried playing around with this part under Forum Wrapper but to no avail: <div id="navigation-container"> <div id="navigation-menu" class="ui-helper-clearfix"> <div class="navigation-left"> $[navigation.tree] I am aware there is a plugin called Easy Text Switcher but there seems to be a delay. Upon loading it shows my forum name, and then it switches to whatever I entered in the plugin settings. So it looks a bit silly when it does that. Any help much appreciated! Put this directly above $[header] in your Forum Wrapper template.. <script type="text/javascript"> $('#nav-tree-branch-0>div').find('span').html('Navigation'); </script>
Ooh thanks! It works brilliantly on Safari, but on Chrome it does that thing where it shows the forum name and then quickly changes to Navigation (I even cleared the browsing data and it still happens). Do you know why it does that?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 5, 2017 15:38:20 GMT -8
Put this directly above $[header] in your Forum Wrapper template.. <script type="text/javascript"> $('#nav-tree-branch-0>div').find('span').html('Navigation'); </script>
Ooh thanks! It works brilliantly on Safari, but on Chrome it does that thing where it shows the forum name and then quickly changes to Navigation (I even cleared the browsing data and it still happens). Do you know why it does that? Javascript can only run once it's been reached in the document. Prior to that the element it's going to affect will display with the original name as usual. Depending on the browser and the speed of the PC you're on the text can change at different times. In the default layout the position that Todge instructed you to place the code comes right after the navigation tree which should allow it to run at the soonest possible time in the document. If it comes much later in the document on the theme you're using that may be responsible for the text not changing immediately. To attempt to counteract this you can try adding a new line after the $[navigation.tree] line and placing the code there instead.
|
|
inherit
237817
0
Jul 15, 2017 1:30:54 GMT -8
seaturtle
63
October 2016
seaturtle
|
Post by seaturtle on Apr 7, 2017 7:36:44 GMT -8
Ooh thanks! It works brilliantly on Safari, but on Chrome it does that thing where it shows the forum name and then quickly changes to Navigation (I even cleared the browsing data and it still happens). Do you know why it does that? Javascript can only run once it's been reached in the document. Prior to that the element it's going to affect will display with the original name as usual. Depending on the browser and the speed of the PC you're on the text can change at different times. In the default layout the position that Todge instructed you to place the code comes right after the navigation tree which should allow it to run at the soonest possible time in the document. If it comes much later in the document on the theme you're using that may be responsible for the text not changing immediately. To attempt to counteract this you can try adding a new line after the $[navigation.tree] line and placing the code there instead. Thanks Brian for the suggestion So it's nothing to do with having badly written / cluttery HTML? I just tried this and there's seems to be a slightly, barely noticeable improvement compared to putting it under $[header] on Chrome. I don't know if it is just me but the change does seem to be a bit faster (or maybe my internet speed is different depending on the time of day).
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 9, 2017 8:05:25 GMT -8
That's about the fastest you're going to get it since there's no other way to execute the code faster.
I don't think any of the HTML that comes before it is going to have any impact. If there were a script that ran in between the navigation tree and the code to change its text that would be one thing, but since the code is immediately next to it that's no longer a factor.
|
|