The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to Rename Navbar Name

View previous topic View next topic Go down

Solved How to Rename Navbar Name

Post by YoshiGM on October 26th 2011, 12:19 am

Today i found, is possible to change the Navigation bar Default Links with:

Code:

$(function() {
var x=$('a.mainmenu').get();
$(x[0]).text('Forum');
});

It works very good :wouhou:

But the image of the link doesn't appear Shocked

That is, if for example the link "Forum" I have an image of a soccer ball because the ball does not come out :S


Last edited by YoshiGM on October 26th 2011, 2:29 am; edited 1 time in total

YoshiGM
Forumember

Male Posts : 512
Reputation : 76
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Solved Re: How to Rename Navbar Name

Post by LGforum on October 26th 2011, 12:39 am

That code is from my post in another thread i believe, isn't it?

This will leave the image intact:
Code:

$(function() {
var x=$('a.mainmenu').get();
var y=$(x[0]).find('img');
y[0].nextSibling.nodeValue="Forum";
});

Its bit of a fussy messy code for such a small outcome... but ah well.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: How to Rename Navbar Name

Post by YoshiGM on October 26th 2011, 2:21 am

Yes, is it Smile

But, if wanna change others links like Portal, Members, Groups,etc. How to ?

YoshiGM
Forumember

Male Posts : 512
Reputation : 76
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Solved Re: How to Rename Navbar Name

Post by Darkel on October 26th 2011, 2:21 am

You mean how to rename the default navigation bar ?

Darkel
Hyperactive

Male Posts : 2128
Reputation : 257
Language : English, Tagalog
Location : Philippines

Back to top Go down

Solved Re: How to Rename Navbar Name

Post by YoshiGM on October 26th 2011, 2:22 am

Yes x)

YoshiGM
Forumember

Male Posts : 512
Reputation : 76
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Solved Re: How to Rename Navbar Name

Post by LGforum on October 26th 2011, 2:25 am

Where it says 'x[0]' you need to change the number.
0 is the first thing in your navbar, 1 us the second thing in your navbar, 2 is the third and so on ...

Is there honestly no way to do this in the ACP? There must be...

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: How to Rename Navbar Name

Post by YoshiGM on October 26th 2011, 2:28 am

Thank You so much LG.. IT WORKS !!!

:wouhou: :wouhou: banana guitar

YoshiGM
Forumember

Male Posts : 512
Reputation : 76
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Solved Re: How to Rename Navbar Name

Post by Sanket on October 26th 2011, 6:27 am

Since this thread is marked solved, I will archive this thread.


Sanket Smile


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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