Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Increasing Font Size Used In Body Of Forum Posts
Avatar
Ryan Collins
Member
Free Members
sp_UserOfflineSmall Offline
Jun 22, 2015 - 12:09 am

How can I increase the font size used in the body of forum posts?

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 22, 2015 - 1:52 am

Which Simple:Press theme are you using please?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ryan Collins
Member
Free Members
sp_UserOfflineSmall Offline
Jun 24, 2015 - 10:29 am

I am using the Default theme with a silver overlay.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jun 24, 2015 - 10:35 am

Hey Ryan,

Using Default you would need to change the value of $PostContentFontSize in the overlay. As standard it's set to 90% so an increase of 5% will probably be what you want, although you might have to experiment.

As always we recommend making a child theme to preserve the change, and seeing as it's just an overlay it should be pretty straight forward.

Hope that helps!

Avatar
Ryan Collins
Member
Free Members
sp_UserOfflineSmall Offline
Jul 28, 2015 - 11:00 pm

Thanks Ike. Here is what I'm seeing when I look at my default.php stylesheet.

#spMainContainer .spTopicPostSection .spPostSection .spPostContentSection .spPostContent {
border-top: <?php echo($postBorder); ?>;
color: <?php echo($postColor); ?>;
margin: 5px 0;
padding: 10px;
font-size: <?php echo($PostContentFontSize); ?>;
line-height: 1.2em;
}

Where would you recommend I add the increase of 5%?

Thanks!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 29, 2015 - 7:17 am

The font-size there uses the PHP variable $PostContentFontSize to control things - which is called from the overlay.

If you are using sky-blue overlay for example, open it up from:

sp-resources > forum-themes > default > styles > overlays > sky-blue.php

Then locate $PostContentFontSize and you can then change the value from 90% to 95%.

As this would be part of a child theme, you'd need to have the entire sky-blue.php overlay in your child themes styles > overlays folder for it to work, so once edited you can then save it to your child theme folder.

Hope that helps!

Avatar
Ryan Collins
Member
Free Members
sp_UserOfflineSmall Offline
Aug 4, 2015 - 4:13 pm

Thanks.

I located $PostContentFontSize within the silver.php overlay and increased it to 95%. I didn't see any visible changes so I increased it again to 125%. I cleared my page cache and am still not seeing any changes.

$PostContentFontSize ='125%';
$spMainContainerSmall ='90%';
$spListTopicRowName ='90%';
$spListForumRowName ='85%';
$spListPostLink_spListLabel ='85%';
$UserInfo ='80%';

I'm also not using a child theme. I know you guys preach using a child theme but I haven't yet gotten around to setting one up.

Any ideas on this one? 

I will PM you login credentials. I just want the font to be a little bit larger because a lot of my forum users are older in age.

I appreciate the help!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 4, 2015 - 4:38 pm

Hey Ryan,

No problem, I've taken a look and am a little confused. First off are you sure you're using Default and not CSS-Only?

If CSS-Only, it doesn't use overlays so the stylesheet will have a 90% rule instead of a variable. I tried to check but your SP needs updating (Which we also highly recommend!).

Could you also try clearing the combined CSS cache.

Also just to add, have you thought about possibly trying out the Font Resizer plugin? It allows anyone to adjust the font size up and down throughout the entire forum.

Avatar
Ryan Collins
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2015 - 11:20 am

Thanks for taking a look. Much appreciated!

I think I am using Default with the Silver Overlay based on what I see when I go to Forum > Themes (see below)

Default-with-Silver-Overlay.jpgImage Enlarger

How do I clear the combined CSS cache?

The font resizer plugin sounds great but I'm super confused about how to access it. I've been using Simple Press for years now and I remember being able to just download plugins as I needed them, but it looks like I now need to purchase plugins individually or as bundles? 

I know I need to update Simple Press but I recall losing a lot of customizations the last time I updated, and I know a child theme will help prevent that from occurring based on what I've read here in the forum.

Is there a tutorial for how to setup a child theme?

Thanks again for the insight!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 5, 2015 - 11:37 am

I am going to leave Ike to continue to actual issue support but - you can reset the CSS cache in the forum admin > toolbox > housekeeping. Run the task there then clear the browser cache as well and then reload SP to see if it was just a caching issue.

andy-signature.png
YELLOW
SWORDFISH
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