News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Bold text not working

Started by Zakees_, October 21, 2019, 06:11:35 AM

Previous topic - Next topic

Zakees_

I'm using Horizon 2.0 theme. When I put a text in bold, it doesn't show on PC (on mobile works fine)
It's possible to make it works on both?

d3vcho

Does that happen with default theme as well? Also have you tried different web browsers?
"Greeting Death as an old friend, they departed this life as equals"

Zakees_

I tried but still not working.
Just happen with this theme, but I like it and don't want to change it.

d3vcho

Maybe you should ask for support to the theme's autor. Where did you get it from?
"Greeting Death as an old friend, they departed this life as equals"

Zakees_

Theme's author stop working for smf, and dissapears totally.
I don't know what to do :S

Illori

can you provide a link to where the issue is happening?

Dzonny

Yeah, the link would be useful. It may be that the problem is with css only.


d3vcho

Only registered users have access to the forum.
"Greeting Death as an old friend, they departed this life as equals"

Zakees_

Use

username: demo
pass: demo

My bad :P

d3vcho

There seems to be a CSS error. Navigate to the file index.css of the current theme and look for the following:

Quoteb, strong {
          font-weight: 500;
}

And replace "font-weight: 500;" for " font-weight: bold;".
"Greeting Death as an old friend, they departed this life as equals"

Zakees_


Illori

https://dubaicityroleplay.com/foro/Themes/horizon-smf20/css/index.css
/* Define strong as bold, and em as italics.
-------------------------------------------- */
b,
strong {
font-weight: 500;
}


find that and replace with

/* Define strong as bold, and em as italics.
-------------------------------------------- */
b.
strong {
font-weight: 500;
}


after the b should be a period not a comma.

Zakees_

Okay, thanks a lot. I made a mistake and delete complete theme but I can solve It. Thanks!!

Zakees_

It's possible to restore a deleted theme? :s

Illori

in what way did you delete it?

Antechinus

Quote from: Illori on October 21, 2019, 09:00:27 AM
https://dubaicityroleplay.com/foro/Themes/horizon-smf20/css/index.css
/* Define strong as bold, and em as italics.
-------------------------------------------- */
b,
strong {
font-weight: 500;
}


find that and replace with

/* Define strong as bold, and em as italics.
-------------------------------------------- */
b.
strong {
font-weight: 500;
}


after the b should be a period not a comma.

Why do you say that? A comma is perfectly normal there. It's saying HTML b tags and strong tags get that font-weight. The only reason you would use a period is if you were calling a class, and in that case it would go directly before the class name.

Illori

i changed it in the browser inspect tool and it fixed the issue.

Antechinus

In that case I suspect something else is borked too.

Advertisement: