bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on Jul 28, 2017 10:22:46 GMT -8
I am wondering if there is some kind of header code I can get that will limit the number of characters displayed (rather than outright allowed) in the navigation tree/hierarchy thingy. Because when characters are "too long" for the theme I'm using, this happens: If this kind of code is possible, is there a way I can also have a separate character count for the edit post page? I noticed that that one cuts off after an even shorter amount of characters.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 28, 2017 14:35:43 GMT -8
I am wondering if there is some kind of header code I can get that will limit the number of characters displayed (rather than outright allowed) in the navigation tree/hierarchy thingy. Because when characters are "too long" for the theme I'm using, this happens: If this kind of code is possible, is there a way I can also have a separate character count for the edit post page? I noticed that that one cuts off after an even shorter amount of characters. You could put this in the CSS Styling of your theme(s)... #nav-tree-branch-2>div { max-width: 100px; } #nav-tree-branch-2>div>a { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
change the red number to suit
|
|
bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on Jul 28, 2017 19:19:31 GMT -8
I added that and played around with it for a minute, but it just disfigured the nav-tree more! Thank you for that code though!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 29, 2017 7:10:31 GMT -8
I added that and played around with it for a minute, but it just disfigured the nav-tree more! Thank you for that code though! In what way?
|
|
bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on Jul 30, 2017 11:59:25 GMT -8
I added that and played around with it for a minute, but it just disfigured the nav-tree more! Thank you for that code though! In what way? I just quickly added the base code (with the unaltered 100px value) to show you: Edit: I played around with the code again, first adding an extra zero to the default value - same thing happened. Then I took away two zeros and it did this:
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 30, 2017 14:33:01 GMT -8
Can you please Post or PM me a link to your forum so I can take a look.
Thanks.
|
|