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.

Add jquery plugin?

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

I wanted to experiment with a way to scale text responsively.

I found this: thdoan.github.io/scalem/

I then included the code in the template:
ScreenShot2016-02-16at10.38.25AM.jpg


1. Where do I upload the actual jquery.scalem.js file?

2. Am I doing this right?

TEMP URL: 181.224.134.27/~icd10mon/index.php?option=com_content&view=article&id=1123&Itemid=190
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
Last Edit: 8 years 2 months ago by ODiN Mayland.
The administrator has disabled public write access.
Hi Jeff,

A couple of things.

1. The script is included above jQuery so it's causing a jquery issue. You need to include the file in the section that says before closing head tag.

2. Because of the way we sanitise code added to the template there you need to remove the comments from the code. That block is being added as a single line so it's getting commented out.

So you would just add this:

$(document).ready(function() { $('h2').scalem(); $('#txt').scalem(); $('.btn').scalem({ ratio: 1, reference: 'h2', styles: 'border-radius border-width' });}

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

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

Happy Campers