Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Page Class Suffix and Font-size

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

I found out that if I enter a page class suffix to a menu item, the font-size styling on that page is lost.

Pls see the attached capture of the firebug screen..

Screen 1: without Page Class Suffix:


Screen 2: With Page Class Suffix:
  • Mak Yiu Wah's Avatar
  • Mak Yiu Wah
  • Previous Member
  • 42 posts
  • Karma: 0
Last Edit: 14 years 2 weeks ago by Mak Yiu Wah.
The administrator has disabled public write access.
Can you post us a link please Mak?
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
I have also noticed the same thing on my site
  • Mark Law's Avatar
  • Mark Law
  • 12 Month basic
  • 78 posts
  • Karma: 1
The administrator has disabled public write access.
Hi Seth,

Here is the link: 4s129.biza.com.hk/

Pls notice the font size at the Front Page, where a Page Class Suffix is applied, is different from others.

Many Thanks!

I'm Seth, too :P
  • Mak Yiu Wah's Avatar
  • Mak Yiu Wah
  • Previous Member
  • 42 posts
  • Karma: 0
The administrator has disabled public write access.
Hey folks - thanks for spotting this.

In the templates/zengridframework/index.php file the

<?php echo $pageclass; ?>

Is repeated in the style declaration. This just needs to be removed so:
<body class="<?php echo $fontStackBody ?> <?php if ($pageclass !='') { echo $pageclass;} ?>" style="font-size: <?php echo $fontSize ?> <?php echo $pageclass; ?>">

should become:
<body class="<?php echo $fontStackBody ?> <?php if ($pageclass !='') { echo $pageclass;} ?>" style="font-size: <?php echo $fontSize ?>">

We will issue an update with this fix soon.

Thanks Again.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Excellent, thanks Anthony. I have made the change and it works, thanks :)
  • Mark Law's Avatar
  • Mark Law
  • 12 Month basic
  • 78 posts
  • Karma: 1
The administrator has disabled public write access.
Thanks Seth and Mark :)
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Thank you!

Seth
  • Mak Yiu Wah's Avatar
  • Mak Yiu Wah
  • Previous Member
  • 42 posts
  • Karma: 0
The administrator has disabled public write access.
Glad you have it fixed Seth

B)

Thanks for letting us know.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Just applied the fix to my own site!

Thanks Seth for spotting it and Anthony for the fix!

B)
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers