We need to add a function on the site where the user can click on a button to change the size of the font, from small to large. We know that on the browsers you can set this but the users in question wont be very knowledgable and we require the facility on the page so they can easily and quickly change the font sizes
We have seen it on many sites and have seen some code to do it, however does anyone have any idea on the best way of doing it via SS....based on the font size in the css and changing it? is there almost a way to change template files or reload a css file? or simply change the font size in question to different size
The JS adds inline font-size styles to any p element and the links activate the change in the inline styles. You would want to set the initial value in the JS to your default font-size, it is currently set to 12 by default.
That was easier than I thought it would be, the only question is, if I wanted every page to then keep the same font size, how do i do that as it reloads and the font returns to normal size so they would need to resize it again on each page