Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 2 Years, 2 Weeks ago Bold Tag 'font-weight'
#1
Solved: 2 Years, 2 Weeks ago
Hello to all! 
i wanna change the <span class="mycode_b" style="font-weight: bold;"> to <span class="mycode_b" style="font-weight: 500;">

I figured out that the 500 is looking better than bold on chrome! 

Any idea how to change it?

Thanks.

Anyone know how to change it? Please any help...
Reply
#2
Solved: 2 Years, 2 Weeks ago
With a vanilla MyBB installation you would have to edit the parser class code (inc/class_parser.php) to do that.

change line 270 (in postParser::cache_mycode) from:

$standard_mycode['b']['replacement'] = "<span style=\"font-weight: bold;\" class=\"mycode_b\">$1</span>";

to:

$standard_mycode['b']['replacement'] = "<span style=\"font-weight: 500;\" class=\"mycode_b\">$1</span>";
Reply
#3
Solved: 2 Years, 2 Weeks ago
Thank you for your support bro! +rep!!! It looks much better now on chrome.
Reply
#4
Solved: 2 Years, 2 Weeks ago
You're welcome. Cool
Reply
#5
Solved: 2 Years, 2 Weeks ago
(10-07-2017, 02:11 PM)Mike.HSX Wrote: Thank you for your support bro! +rep!!! It looks much better now on chrome.

What about other browsers (Firefox for example?) - screenshot would be nice to see a difference...
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#6
Solved: 2 Years, 2 Weeks ago
(10-07-2017, 04:29 PM)Eldenroot Wrote:
(10-07-2017, 02:11 PM)Mike.HSX Wrote: Thank you for your support bro! +rep!!! It looks much better now on chrome.

What about other browsers (Firefox for example?) - screenshot would be nice to see a difference...

Now fixed for all browsers! Now the look of it looks more better in all browsers.
Reply
#7
Solved: 2 Years, 2 Weeks ago
CSS is a better method, you can override the style with !important. Now you don't have to repeat the process every time you update MyBB.

span.mycode_b {
    font-weight: 500 !important;
}
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)