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.

Renameing Navigation Links

+2
SLGray
SummerRed
6 posters

Go down

Solved Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 1:26

I was  trying to rename the 'Home' button in the Navigation bar. I know how to create a new link and how to hide certain parts of the Navigation. That is not what I want. I just want to rename 'Home' to Index.

Forum URL: http://forum.sims-pets.com/

Thanks in advance!
-SummerRed


Last edited by SummerRed on Sat 22 Jun - 1:15; edited 1 time in total
SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SLGray Tue 18 Jun - 2:04



Renameing Navigation Links 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 : 51482
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 5:16

That is what I want. and I followed what he said to do and it doesnt work.
Did I do it correctly:
Code:
$(function() {
document.getElementById('i_icon_mini_home').nextSibling.nodeValue='Index';
});
SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SLGray Tue 18 Jun - 5:31

It looks correct. Did it work?


Renameing Navigation Links 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 : 51482
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 5:58

No... it still says Home
SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Mati Tue 18 Jun - 12:35

This shell work.


Code:
$(function() {
document.getElementById('i_icon_mini_index').nextSibling.nodeValue='Index';
});
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 16:28

Nope... Do I need to post it anywhere else besides a Java script?
SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Ultron's Vision Tue 18 Jun - 17:36

You should be able to do this with CSS.

Add this to your CSS Stylesheet (found under Admin Panel -> Display -> Pictures and Colors -> Colors -> CSS Stylesheet).

Code:
a.mainmenu[href="/"] {
content: "Index";
}
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 17:44

Nope... Id don't understand what I am doing wrong.

I don't understand why you can't just modify the grayed out text. This is ridiculous. I am not illiterate in this sort of thing so I know I am doing it correctly.
SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Mati Tue 18 Jun - 18:07

SummerRed wrote:Nope... Do I need to post it anywhere else besides a Java script?

What you mean i test it and it works....What a Face
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Ultron's Vision Tue 18 Jun - 18:15

Might be because he has no images set for the navigation bar...

Can you provide us access to a test account so I can have a look at what the forum looks like for a registered user, please, SummerRed?
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 18:17

Username: Test Account
Password: testing123


SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Mati Tue 18 Jun - 18:21

You don't use the default nav bar so why don't you change home to index via Templates overall_header Very Happy
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 18:25

I do use the default nav bar. I just have stuff hidden? I shall try that though forgot about those templates haha
SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Ultron's Vision Tue 18 Jun - 18:29

As I thought, you haven't set any images for the navbar so the codes we provided did not work.

If you are using phpBB 2, you can edit templates and - assuming that you would be ready to do so - I could edit them for you if you don't know how to do so. That would require me to have access to the founder account, so if you really feel that you cannot do it alone, PM me the account details. Otherwise, if you know how to edit the templates, I can give you the necessary instructions, as second option.
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: Renameing Navigation Links

Post by SummerRed Tue 18 Jun - 18:30

I know how to edit the templates I just need to know what to look for
SummerRed
SummerRed
New Member

Female Posts : 21
Reputation : 1
Language : English
Location : Nebraska

http://mysticfallsrpg.rpgboard.net/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Ultron's Vision Tue 18 Jun - 19:34

Code:
<td align="{MENU_POSITION}"{MENU_NOWRAP}>{GENERATED_NAV_BAR}</td>

This line is what you need to replace.

If you don't know what to modify for your script to work, tell me.
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Richard. Tue 18 Jun - 19:59

Code:
a[href="/"] {
display: none;
line-height: normal !important;
}
a[href="/"]:after {
content: "Index" !important;
}
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Solved Re: Renameing Navigation Links

Post by Jophy Sat 22 Jun - 11:46

Since this thread was marked solved, I'll move this thread now.
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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