Font sizer on mobile?

Post

Posted
Rating:
#8607 (In Topic #2870)
Avatar
Standard member
Keith Parker is in the usergroup ‘Fan in action’

How to add Font Sizer to mobile view?

The Font Sizer works great on the desktop however, it does not seem to be present on the mobile view. I've had some request to be able to change the font size for small screen devices. 

I looked through the site settings, but don't see a simple way to make the Font Sizer available on mobile devices as well as on the desktop. What must I do to have it available on both?
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#8612
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Hi,

You can make a quick edit to themes/default/templates/GLOBAL_HTML_WRAP.tpl (or create a copy with the required changes applied inside themes/default/templates_custom). Just remove the outer tempcode which limits output to desktop view and all should be well.

Find:-

Code

{+START,IF,{$NOT,{$MOBILE}}} {+START,INCLUDE,FONT_SIZER}{+END} {+END}
Replace:-

Code

{+START,INCLUDE,FONT_SIZER}{+END}
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#8902
Avatar
Standard member
Keith Parker is in the usergroup ‘Fan in action’
Thank you Adam!
That worked perfectly. I just wish there was a toggle in the settings for this.

I placed a copy of the edited "tpl" file in the "templates_custom" folder to hopefully retain the changes after a future update.

Last edit: by Keith Parker

Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top