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 June 18th 2013, 12:26 am

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 June 22nd 2013, 12:15 am; 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 June 18th 2013, 1:04 am



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 June 18th 2013, 4:16 am

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 June 18th 2013, 4:31 am

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 June 18th 2013, 4:58 am

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 June 18th 2013, 11:35 am

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 June 18th 2013, 3:28 pm

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 June 18th 2013, 4:36 pm

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 June 18th 2013, 4:44 pm

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 June 18th 2013, 5:07 pm

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 June 18th 2013, 5:15 pm

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 June 18th 2013, 5:17 pm

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 June 18th 2013, 5:21 pm

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 June 18th 2013, 5:25 pm

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 June 18th 2013, 5:29 pm

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 June 18th 2013, 5:30 pm

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 June 18th 2013, 6:34 pm

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. June 18th 2013, 6:59 pm

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 June 22nd 2013, 10:46 am

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