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...
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>";
Thank you for your support bro! +rep!!! It looks much better now on chrome.
(2017-10-07, 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...
(2017-10-07, 04:29 PM)Eldenroot Wrote: [ -> ] (2017-10-07, 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.
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;
}