Changing the design of the legend

Go down

Solved Changing the design of the legend

Post by tedyblue on January 14th 2016, 12:30 pm

Hello guys,

I have been looking all morning for a topic which could have helped me, but I haven't found one.

I want to change the legend of my forum so it has two lines of groups.

One in which I will put admins, global mods, and mods and one for the rest of the groups. I remember it was some changing in the templates - index_body, buy I can't find he topic I've used before.

Thank you for your time.


Last edited by tedyblue on January 14th 2016, 2:05 pm; edited 1 time in total
avatar
tedyblue
Forumember

Female Posts : 73
Reputation : 4
Language : Bulgarian, English

http://deeper-than-blood.forummotion.com/

Back to top Go down

Solved Re: Changing the design of the legend

Post by 10spetter10 on January 14th 2016, 1:44 pm

Indeed, you need to edit your template to give the legend element an id so you can call to it, change:
Code:
<em>{LEGEND}&nbsp;:&nbsp;{GROUP_LEGEND}</em>
to
Code:
<div id="legend">{LEGEND}&nbsp;:&nbsp;<span id="list">{GROUP_LEGEND}</span></div>

Then add this css:
Code:
#legend #list {
  color: transparent;
  font-size: 0pt;
}
#legend b {
  font-size: 10px;
}
#legend b:nth-of-type(2):before { /*number stands for the group where you break the line */
  content: '\a';
  white-space: pre;
}
avatar
10spetter10
Forumember

Posts : 195
Reputation : 82
Language : Dutch

Back to top Go down

Solved Re: Changing the design of the legend

Post by tedyblue on January 14th 2016, 2:04 pm

Thank you. It worked.

Marked as solved.
avatar
tedyblue
Forumember

Female Posts : 73
Reputation : 4
Language : Bulgarian, English

http://deeper-than-blood.forummotion.com/

Back to top Go down

Solved Re: Changing the design of the legend

Post by APE on January 14th 2016, 10:26 pm

Topic solved and archived



avatar
APE
Administrator
Administrator

Male Posts : 12061
Reputation : 1209
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top


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