Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Custom JavaScript requires basic to moderate HTML/JS skills. Custom JavaScript can be useful in combination with custom templates.

Location Joomla:
/components/com_configbox/data/customization/assets/javascript/custom.js

Location Wordpress:
/wp-content/plugins/configbox/app/data/configbox-customization/assets/javascript/custom.js 

Location Magento 2:
/app/code/Rovexo/ConfigboxCustomizations/view/base/web/javascript/custom.js

See this article about installing the Magento 2 customization module.

  • This file gets loaded on any page that ConfigBox adds content to

  • When you create a minified file (custom.min.js) ConfigBox will load this file instead

  • You need to create this file on your server

...

Instead of leveraging your custom.js file to load modules and to execute JS code anywhere, you can add instructions to custom views to load specific AMD modules and optionally execute functions. See KenedoViews and AMD JS Modules

Using jQuery in your custom modules

...