Renameing Navigation Links Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
+2
SLGray
SummerRed
6 posters

    Renameing Navigation Links

    SummerRed
    SummerRed
    New Member


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

    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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51500
    Reputation : 3523
    Language : English
    Location : United States

    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.
    SummerRed
    SummerRed
    New Member


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

    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';
    });
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51500
    Reputation : 3523
    Language : English
    Location : United States

    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.
    SummerRed
    SummerRed
    New Member


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

    Solved Re: Renameing Navigation Links

    Post by SummerRed June 18th 2013, 4:58 am

    No... it still says Home
    Mati
    Mati
    Active Poster


    Posts : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    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';
    });
    SummerRed
    SummerRed
    New Member


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

    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?
    Ultron's Vision
    Ultron's Vision
    Forumember


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

    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";
    }
    SummerRed
    SummerRed
    New Member


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

    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.
    Mati
    Mati
    Active Poster


    Posts : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    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
    Ultron's Vision
    Ultron's Vision
    Forumember


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

    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?
    SummerRed
    SummerRed
    New Member


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

    Solved Re: Renameing Navigation Links

    Post by SummerRed June 18th 2013, 5:17 pm

    Username: Test Account
    Password: testing123


    Mati
    Mati
    Active Poster


    Posts : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    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
    SummerRed
    SummerRed
    New Member


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

    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
    Ultron's Vision
    Ultron's Vision
    Forumember


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

    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.
    SummerRed
    SummerRed
    New Member


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

    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
    Ultron's Vision
    Ultron's Vision
    Forumember


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

    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.
    Richard.
    Richard.
    Forumember


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

    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;
    }
    Jophy
    Jophy
    ForumGuru


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

    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.