Avatar

Consultation about the name in bold font (Design/Themes)

by Solis ⌂ @, Urumqi, Xinjiang, China 中国新疆乌鲁木齐, Monday, February 27, 2017, 10:59 (26 days ago)
edited by Solis, Monday, February 27, 2017, 11:37

In the forum index page, the user name in bold font is too thick, like this:

[image]

I want use the normal font for the user name, like this:

[image]

But I can't find the codes for it.

--
I speak Chinese & Esperanto.
我说汉语和世界语。
Mi parolas ĉine kaj Esperante.
-----------------------------
http://reto.cn
my forum using MLF
http://reto.cn/forum

Avatar

Consultation about the name in bold font

by Auge ⌂ @, Monday, February 27, 2017, 11:37 (26 days ago) @ Solis

Hello

In the forum index page, the user name in bold font is too thick

I want use the normal font for the user name. But I can't find the codes for it.

Take a look into the HTML source code. You'll see, that the user name is a child of a <strong>-element.

an unregistered user:

<strong>Ralph</strong>

a registered user:

<strong><span class="registered_user">Solis</span></strong>

a moderator:

<strong><span class="mod registered_user" title="Moderator">Auge</span></strong>

Because of the possibility of appearance of the element <strong> in different places the safest way is to only alter the rules for <strong> in the thread list. The rule ul.thread strong { font-weight: normal; } should do the job.

You can change the CSS-rules in the default template or you create and modify an own theme (copy the default theme with a new directory name and change the CSS-code there). Be aware of coming changes in the default template. It can cause your changes to disappear if you modify the default template. With a new theme you don't loose your changes but you have to import the changes of the default template into your theme in the case of a software update.

Tschö, Auge

--
further development of mlf1

Avatar

Thanks for your help!

by Solis ⌂ @, Urumqi, Xinjiang, China 中国新疆乌鲁木齐, Monday, February 27, 2017, 16:42 (26 days ago) @ Auge

Thanks Auge for your help so quickly!

Now the font of user name in the forum index page is normal!

I solved the problem according to your words.

I deleted the labels <strong> and </strong> from the file themes/default/subtemplates/index.inc.

Thanks the team of My Little Forum!!!

[image]

--
I speak Chinese & Esperanto.
我说汉语和世界语。
Mi parolas ĉine kaj Esperante.
-----------------------------
http://reto.cn
my forum using MLF
http://reto.cn/forum

RSS Feed of thread
powered by my little forum