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
Forum Font size changed
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2015 - 12:25 am

I wanted to use Badges for different groups so I added a badge to one of the groups and followed the advice here https://simple-press.com/suppo.....s/#p105467

This worked in that it displayed the badge but, as some members are in 2 groups, the text still showed for the group without a badge so to remove all titles I added &showTitle=0 to the UserRank and UserSpecialRank entries.

After I updated the file and checked the Forum, all text has become tiny which I know will not go down too well with the users so I removed all the entries referred to above expecting the font size to return to normal but it has stayed very small!

I thought I must have made a mistake somehow so, as the theme was due to have the latest update applied I went ahead thinking that would overwrite everything and all would return to normal size, not so, it is still in a very small font.

I've installed the Font Resizer plugin to give users the option to enlarge the font but would prefer to go back to the size we had before.

Any ideas as to what to do to achieve this, and why it happened in the first place?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2015 - 1:58 am

can you give us a link to an example?  that way we can inspect the css and see what is driving it...

Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2015 - 7:20 am

Yes, The main wp site seems unaffected but all the text in the Forum is tiny.

http://www.bsabantamclub.com/forum

if you need any admin access etc. please let me know.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 5, 2015 - 7:53 am

Curious. The change you made to a single template won't affect any other forum page with the exception of the one you edited so there has to be something else going on.

Also, interestingly, using the Chrome browser, the text size of the forum posts (and some other items on different forum views) is being displayed at 12px. If I go to your site home page and look at the 'Latest News' section then this too is reported to be 12px.

The forum displays in the WP theme page template content area in a div named 'content' (as it happens) and the CSS rules for this area clearly set the font size to 12px. So the forum is doing what it is supposed to do and inheriting the font size from the WP theme.

And to my old eyes... and to someone who has fond memories of Bantams - they both look too small! Perhaps a third pair of eyes can check it as well.

andy-signature.png
YELLOW
SWORDFISH
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2015 - 8:26 am

I'm using Linux/Firefox and the text size on all of the Site except the Forum appears as it usually does however the Forum text has shrunk and appears to me to be significantly smaller than the 'Latest News' section.

I've just checked on a Windows 7 PC with Chrome and it looks exactly the same as my Linux/Firefox!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 5, 2015 - 8:45 am

Not sure what to say really. Using Firefox on my OSX/Apple Mac the same applies to my comments above. And actually as the WP theme is dictating this then it should be consistent... but I have never used FF under Linux myself.

If you want to increase the forum base font size independently then it is easily done although you should really create a child theme so you can continue to get future updates to the original. Let me kniw if you want to do this and I can point you to what is needed.

andy-signature.png
YELLOW
SWORDFISH
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2015 - 8:58 am

Yes, I realise I should have a child theme but am unclear how to proceed, so I thought making changes to the main theme files would be OK because if it all went pearshaped, the update would revert everything to normal.

The idea was to see what it looked like and if it was OK to then update and then create a child theme with the changes included.

I would be very grateful if you could point me in the right direction.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 5, 2015 - 9:46 am

Child Theme: https://simple-press.com/simpl.....ld-themes/

It really is easy and simple.

andy-signature.png
YELLOW
SWORDFISH
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2015 - 10:38 am

Yes I have read that and the Forum Topic linked to it. I may be missing something.

I understand I have to create folders in the same manner as the main theme (default-child?) but where do they go? Beside the main theme folders in /wp-content/sp-resources/forum-themes? and which files/contents do I have to create and where?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2015 - 10:59 am

Hey 2 Stroke,

Basically a child is exactly the same as a regular theme except it contains nothing but things you want to change.

The child themes belong in the same folder as all the other themes so you are right - sp-resources > forum-themes. If you were making a child theme of 'default', the easiest thing to do would be to copy the default theme folder, rename your copy, update the spTheme.txt file and other file names to match your theme name, and delete everything except the items you want to change.

In this case you can change the overall font size in the stylesheet in sp-resources > forum-thems > yourtheme > styles > yourtheme.php

You can delete every CSS block inside yourtheme.php, and simply add something like:

#spMainContainer {
    font-size: 110%;
    font-size: 1.2em;
    font-size: 12pt;
}

I.e.. %, em, pt or px.. Whichever way you'd like to do your font-sizing.

Hope this helps!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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