0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Add JQuery without Source Edit

  • Add JQuery without Source Edit

    Posted 11 years 11 months ago
    • Good day,

      I would like to add a JQuery library include in the header without editing the index to the template (in my case, Graffito). It just doesn't seem good practice for upgrades, etc.

      Do you have a module position that would allow me to keep XHTML compliance?
      <head>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
      </head>
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Add JQuery without Source Edit

    Posted 11 years 11 months ago
    • Why don't you use some Joomla plugin built specific for this purpose? Search JED for it 8)
    • Check my services at: Mihha-Vision
  • Re: Add JQuery without Source Edit

    Posted 11 years 11 months ago
    • Thank you for the reply. I didn't want to use an extension if I didn't have to. DotNetNuke is another CMS, but has module zones that when you add something to it, it adds it between the <head></head> tags.
      I was curious if you designed your templates the same way. Are you saying this is not a possibility without a 3rd part extension?
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Add JQuery without Source Edit

    Posted 11 years 11 months ago
    • It would be possible to insert it in template's index.php file but then you would need to do this every time you update your template. Using Joomla plugin would be more elegant solution because of that
    • Check my services at: Mihha-Vision

Time to create page: 0.072 seconds