ffs
Junior Member
France-based member
Posts: 307
inherit
264704
0
Jun 12, 2022 11:13:10 GMT -8
ffs
France-based member
307
July 2021
frenchforumsurvivor
|
Post by ffs on Aug 1, 2021 1:58:53 GMT -8
Forum URL: theotherfrenchforum.freeforums.net
By default a title-bar, and its representation in the navigation tree, is called Recently Updated Threads; I have linked to that with a navbar link named Active topics (which members find easier to understand) - can I change the name of the title-bar and the associated nav-tree detail, and, if so, where and how, please?
|
|
#eb7100
1480
0
1
Apr 18, 2024 4:18:47 GMT -8
Craig
208,851
September 2001
cmdynasty
|
Post by Craig on Aug 2, 2021 1:02:11 GMT -8
Hi You can make a couple of template modifications to change it in a couple of places. So open up your Layout Templates. admin > themes > layout templates1. HomeLook for the following line, which should be around line 42: <tr><td>$[recent_threads_link] - $[recent_posts_link]{if $[rss_feed_link]} - $[rss_feed_link]{/if}{if $[mark_boards_read_link]} - $[mark_boards_read_link]{/if}</td></tr> Change that to: <tr><td><a href="$[recent_threads_link.href]" class="$[recent_threads_link.class]" style="$[recent_threads_link.style]" title="$[recent_threads_link.title]">Active Topics</a> - $[recent_posts_link]{if $[rss_feed_link]} - $[rss_feed_link]{/if}{if $[mark_boards_read_link]} - $[mark_boards_read_link]{/if}</td></tr> 2. BoardLook for the following line, which should be around 15: <h1>$[board.display_name]</h1> and change that to: <h1>{if $[route.name] == 'recent_threads'}Active Topics{else}$[board.display_name]{/if}</h1> LastlyAdd the following to your global footer: <script type="text/javascript"> $(document).ready(function(){ $(" #nav-tree span:contains('Recently Updated Threads') ").text('Active Topics'); }); </script> Admin > Structure > Headers / Footers > GlobalAny problems, let us know
|
|
ffs
Junior Member
France-based member
Posts: 307
inherit
264704
0
Jun 12, 2022 11:13:10 GMT -8
ffs
France-based member
307
July 2021
frenchforumsurvivor
|
Post by ffs on Aug 2, 2021 2:58:24 GMT -8
Thanks, Craig, will try that later when I have more time.
|
|
#eb7100
1480
0
1
Apr 18, 2024 4:18:47 GMT -8
Craig
208,851
September 2001
cmdynasty
|
Post by Craig on Aug 2, 2021 5:11:55 GMT -8
No problem. If you run in to any problems with it, let me know
|
|
ffs
Junior Member
France-based member
Posts: 307
inherit
264704
0
Jun 12, 2022 11:13:10 GMT -8
ffs
France-based member
307
July 2021
frenchforumsurvivor
|
Post by ffs on Aug 2, 2021 7:52:12 GMT -8
Works as it should, Craig, great stuff!
Mind you, one of the side-effects of these little additions to the coding is knowing/remembering where they all are in the future. Still, it's not a problem for the moment.
|
|
#eb7100
1480
0
1
Apr 18, 2024 4:18:47 GMT -8
Craig
208,851
September 2001
cmdynasty
|
Post by Craig on Aug 2, 2021 8:09:48 GMT -8
Works as it should, Craig , great stuff!
Mind you, one of the side-effects of these little additions to the coding is knowing/remembering where they all are in the future. Still, it's not a problem for the moment.
Awesome! Bookmark this topic and you can refer back to it You can either bookmark it in your browser, or click the actions menu at the top of this topic and choose to add it to you bookmarks on this forum.
|
|
ffs
Junior Member
France-based member
Posts: 307
inherit
264704
0
Jun 12, 2022 11:13:10 GMT -8
ffs
France-based member
307
July 2021
frenchforumsurvivor
|
Post by ffs on Aug 2, 2021 8:25:01 GMT -8
Works as it should, Craig , great stuff!
Mind you, one of the side-effects of these little additions to the coding is knowing/remembering where they all are in the future. Still, it's not a problem for the moment.
Awesome! Bookmark this topic and you can refer back to it You can either bookmark it in your browser, or click the actions menu at the top of this topic and choose to add it to you bookmarks on this forum. D'oh! But of course.
|
|