Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
How Do I Increase the Default Font of Reboot Theme
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 19, 2017 - 7:17 am

using Firefox the reported size of the font in the editor is 15px.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Arnel
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2017 - 7:24 am

I don't know how you check that.  But when I try to make a reply, the default size in the Tiny Editor is 11px.

https://www.screencast.com/t/3saVOhLw

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 19, 2017 - 7:42 am

That is not 11px - that is 11pt. 'px' is pixels as on a screen measurement. 'pt' are 'points' - a printing measurement.

The browser console in 'Inspector' mode gives the measurement in pixels as 15px.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Arnel
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2017 - 7:47 am

How can I make the 11pt default to something bigger, similar to how big the letters are here in the editor I'm typing right now in your forum?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 19, 2017 - 8:49 am

I admit that I have tried the suggestion that @mr-papa made, using the file in the theme itself and I can not get that to work. That might be a bug we need to look at.

However, the initial suggestion I made at the start, of changing the actual sp-content.css file in the plugin itself does work just fine. You can set to whatever you prefer.

If this is not working for you after a browser cache clearance then perhaps it might have something to do with the extra plugin you added to the editor. I have never tried that. But it does work.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Arnel
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2017 - 8:59 am

I deleted the content.css file in the Reboot child theme and did what you initially suggested, changing the sp-content.css file.  That worked and now the default is 14px.

I don't know what you mean by "the extra plug in I added to the editor".  What extra plug in did I add?  Do you mean the default buttons in the toolbar of Tiny Editor?

I'm happy to stay at 14px default if it's very difficult to make it 15px.  Let's not make perfect the enemy of good. laugh

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 19, 2017 - 12:47 pm

I was referring to the extra tinyMCE font selection dropdown you added...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2017 - 8:00 pm

so figured out the discrepancy here...   our themes are not actually designed by default to look for a custom content.css file...   but our child theme we use here (based on reboot), added a small piece of code that enables it...

so you can do this too if you like...  in your child theme spFunctions.php file, simply add this small piece of code:

add_filter('sph_tm_init', 'sp_myreboot_tm_init');
 function sp_myreboot_tm_init($tiny) {
 $tiny['content_css'] = SPTHEMEBASEURL.'my-reboot/styles/content.css';
 return $tiny;
}

and it will load a custom content.css for you....  note, you need to change the directory my-reboot to match your child theme directory...

and then create a content.css file and add the styles you want/need.. for example:

body {font-size: 15px;}

and voila...

Avatar
Arnel
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2017 - 9:01 pm

It did not work.  I changed this 'my-reboot/styles/content.css' to this 'reboot-child/styles/content.css'.  I copied the code to spFunctions, created content.ss and changed font to 19px.  The default font of Tiny Editor remained at 11pt.  I reverted back to what it was, the initial solution Mr. Swordfish suggested and for now the default stays at 14px.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2017 - 12:57 am

did you use the raw code button to get the code?  if you copied from the html page, you may have gotten incorrect entities for the quotes...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626