Community Forum

User info

Welcome, Guest! Please login or register.


You are here » Community Forum » Questions on Forum Design » CSS Tricks


CSS Tricks

Posts 1 to 6 of 6

1

Changing menu links (by kolobdur74)
to HTML-top or custom style without tags <style></style>

<style>
#navindex a:before {content:"New name";} /* Home */
#navuserlist a:before {content:"New name";} /* Members */
#navrules a:before {content:"New name";} /* Rules */
#navsearch a:before {content:"New name";} /* Search */
#navprofile a:before {content:"New name";} /* Profile */
#navpm a:before {content:"New name";} /* Messages (counter will not be displayed) */
#navadmin a:before {content:"New name";} /* Administration */
#navlogin a:before {content:"New name";} /* Login */
#navlogout a:before {content:"New name";} /* Logout */
#pun-navlinks li a span {font-size:0;}
</style>

+1

2

Thanks for sharing...
before getting translation ...
Do you have CSS Trick for:
Active Topics Replies Unanswered topics My posts My uploads Subscription Mark all as read

0

3

kami
Try to use this script (in HTML footer)

<script><!--Changing text in User Links -->
var Img_Word=0;   //0-Image;1-Word /Change to Image or Word ?
ulinks=new Array(
  ".item1","Word or link of image", // New posts
  ".item2","Word or link of image", // Active topics
  ".item7:first","Word or link of image", // Replies
  ".item3","Word or link of image", // Unanswered topics
  ".item4","Word or link of image", // My posts
  ".item5","Word or link of image", // My uploads
  ".item6","Word or link of image", // Subscription
  ".item7:last","Word or link of image" // Mark all as read - !Last element without ","
)
var s,i;for (i=0; i < ulinks.length; i++){s=ulinks[i+1];
   if(!Img_Word){s='<img class="ulinks" src="'+s+'" border="0" />'}
   $("#pun-ulinks "+ulinks[i]+" a").html("<span>"+s+"</span>");i++;}
</script>

+1

4

Alex_63 wrote:

kami
Try to use this script (in HTML footer)

it seems the code does not work perfectly if using the "word" instead of using the link of image
http://sl.uploads.im/MLiQd.png

Last edited by kami (2017-03-02 10:01:56)

0

5

kami wrote:

it seems the code does not work perfectly if using the "word" instead of using the link of image

Did you change the value of a variable?

Alex_63 wrote:

var Img_Word=0;   //0-Image;1-Word /Change to Image or Word ?

0

6

Admin wrote:

Did you change the value of a variable?
Alex_63 wrote:

    var Img_Word=0;   //0-Image;1-Word /Change to Image or Word ?


before this I did not notice it so I did not get the desired implementation

var Img_Word=1;    if u want to Change to  Word

+1


You are here » Community Forum » Questions on Forum Design » CSS Tricks