Skip to content

How to add CSS and Javascript to Your Joomla Extension

When creating a quality Joomla extension you will place your styles and javascript codes on seperate files.

Then here is the way to add those files in to the joomla extension the proper way.

$document = JFactory::getDocument();
$document->addScript(JURI::root(). ‘mod_name/js/script.js’);

Sri Lanka

About Domain is owned and operated by Mobiz International PVT LTD. Joomla trademark is used under limited permission granted by Joomla project.

Read More

Affiliations / Partners

sortlist certified web designer company

© 2023 Mobiz International (Pvt) Ltd. All rights reserved | Web design and development company in Sri Lanka