font size switcher doesn't work properly

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Thu May 26, 2011 6:16 am
In k2 articles when I use the font-size switcher to increase the font size, the first part of the article insn't affected (before the 'read more'). How can I solve this problem?
Please see the pictures for further information.
I use Joomla 1.5.23, Corporate2 v2.015, K2 v2.4.1.
Thanks
Paolo Amadei
User avatar
Fresh Boarder

Konrad M
Thu May 26, 2011 6:21 am
Hi
Can you give us url to your site ?
User avatar

GK User
Thu May 26, 2011 10:18 am
User avatar
Fresh Boarder

GK User
Thu May 26, 2011 10:59 am
Hi

This doesn't have anything with Corporate2 files.
This is exclusively from K2 component.

Anyway, if you want to fix it you can open the following file ../components/com_k2/js/k2.js

replace this lines:
Code: Select all
// Text Resizer
  if($('fontDecrease')) {
      $('fontDecrease').addEvent('click', function(e){
         new Event(e).stop();
         $$('.itemFullText').removeClass('largerFontSize');
         $$('.itemFullText').addClass('smallerFontSize');
      });
  }
  if($('fontIncrease')) {
      $('fontIncrease').addEvent('click', function(e){
         new Event(e).stop();
         $$('.itemFullText').removeClass('smallerFontSize');
         $$('.itemFullText').addClass('largerFontSize');
      });
  }


with

Code: Select all
  // Text Resizer
  if($('fontDecrease')) {
      $('fontDecrease').addEvent('click', function(e){
         new Event(e).stop();
         $$('.itemFullText').removeClass('largerFontSize');
         $$('.itemFullText').addClass('smallerFontSize');
         $$('.itemIntroText').removeClass('largerFontSize');
         $$('.itemIntroText').addClass('smallerFontSize');
      });
  }
  if($('fontIncrease')) {
      $('fontIncrease').addEvent('click', function(e){
         new Event(e).stop();
         $$('.itemFullText').removeClass('smallerFontSize');
         $$('.itemFullText').addClass('largerFontSize');
         $$('.itemIntroText').removeClass('smallerFontSize');
         $$('.itemIntroText').addClass('largerFontSize');
      });
  }


Again, this is done directly on K2 js files, so if you update K2 in future release you need to change it again, except if K2 team considerate to include it.

Cheers ;)
User avatar
Platinum Boarder

GK User
Thu May 26, 2011 4:03 pm
Now it works!
Thanks a lot.
User avatar
Fresh Boarder


cron