How to set "font-readable" to stay ON between pages?

More
3 months 2 weeks ago #12247 by AmbroseVideo
AmbroseVideo created the topic: How to set "font-readable" to stay ON between pages?
I have downloaded the latest version of the template, and have tried on Joomla 3.65 thru 3.98, but am unable to get the "font-readable" setting to stay on.
It is applied, but as soon as the user goes to another page, it is lost, and they have to click it again.
How can I get it to stay set when requested?

This is quite important to our client, and I'd be happy to fix it pending a new version, if I could get the direction to do so.
Thank you in advance.

Please Log in or Create an account to join the conversation.

More
3 months 2 weeks ago #12248 by artur
artur replied the topic: How to set "font-readable" to stay ON between pages?
Hello,
Thank you for the message.
I'm afraid I'm not sure what do you mean exactly by 'font-readable'?
Could you send more details, please?
You can add screenshots.

Have a nice day.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago - 3 months 1 week ago #12250 by AmbroseVideo
AmbroseVideo replied the topic: How to set "font-readable" to stay ON between pages?
It's the button that has the class "jm-font-readable"
Attachments:
Last Edit: 3 months 1 week ago by AmbroseVideo.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #12253 by artur
artur replied the topic: How to set "font-readable" to stay ON between pages?
Hello,
Thank you.

Please contact the support team and provide access to your page.
We need to check the code.
www.joomla-monster.com/my-account/submit-ticket

Have a nice day.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago - 3 months 1 week ago #12255 by AmbroseVideo
AmbroseVideo replied the topic: How to set "font-readable" to stay ON between pages?
While waiting, I found/fixed the code by duplicating what was already there for
font-contrast
:
Added to fontswitcher.js
jQuery('.jm-font-readable').click(function(event){
	event.preventDefault();
	JMbody.addClass('font-readable');
	jQuery.cookie('jm-font-readable', 'font-readable', { expires: 7, path: window.cookiePath });
});

Added to tpl/default.php
~line 61:
$readable = '';
~line 181:
$readable = isset($_COOKIE['jm-font-readable']) ? 'font-readable' : '';

Modified tpl/default.php
Added
$readable
to
<body class="......
Last Edit: 3 months 1 week ago by AmbroseVideo.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #12257 by artur
artur replied the topic: How to set "font-readable" to stay ON between pages?
Thank you very much.
I'm glad it is working now.
Of course, we will fix this issue also in the next template update.

Please Log in or Create an account to join the conversation.

Time to create page: 0.291 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.