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.

Change Navigation Titles

2 posters

Go down

Change Navigation Titles Empty Change Navigation Titles

Post by Take Notes May 29th 2016, 9:55 pm

I forgot how to do this, I'm pretty sure I was able to do it at one point but I forgot. I tried using the content property, no success.
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Change Navigation Titles Empty Re: Change Navigation Titles

Post by Ange Tuteur May 29th 2016, 11:53 pm

If you mean renaming the navigation links with CSS, then this is the syntax :
Code:
a.mainmenu[href^="/forum"] { font-size:0 !important; }
a.mainmenu[href^="/forum"]:after {
  content:"NEW_TEXT";
  font-size:12px !important;
}

First rule hides the old text by setting it to 0. Second rule adds pseudo content after the link which serves as the new text. Note that the font-size should be the default font-size of your navlinks. Remember to replace /forum with the href content of the link.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Sir Chivas™ likes this post

Back to top Go down

Back to top

- Similar topics

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