0

I am brand new to Joomla and it appears that it does not allow JavaScript codes to run by default. I am running my website on the latest version (3.10). I have looked all around the internet, disabled all editor options as suggested, however to no avail. Wondering if there is a way to enable it without installing any additional module/plugin. From old references, something similar to adding a custom HTML/JavaScript is needed. I need to be able to place Amazon/Google advertisements on my site.

8
  • Welcome to JSE, please take our tour while you wait for support. Aug 25, 2021 at 23:24
  • Depending on your site template you may be able to ass custom js/css in the template settings (Extensions -> Templates -> Styles -> [template name])
    – jonboy
    Aug 26, 2021 at 7:59
  • @jonboy thank you for responding. I was able to add a custom JS on the location as you suggested. However, (i) I am unable to call it inside a module, (ii) I would not know even if i was successfully able to call it on the page coz no matter what nothing appears on the module when it is published. Aug 26, 2021 at 11:04
  • @ManishKYadav You didn't mention you wanted to include the code inside a module, in that case my suggestion won't work as it will be included in the <head> of each page. I don't know any way of doing this without installing a third party plugin, or creating your own custom module docs.joomla.org/J3.x:Creating_a_simple_module/…. Is there any reason why you can't install a third party plugin? Would make the process much easier.
    – jonboy
    Aug 26, 2021 at 11:28
  • @jonboy i tried a few plugins but to no avail. A few of them needed a paid 'pro' version to unlock features to enable them but I am not in a situation where i can use a paid version. Also, with the limited features that were enabled, i still could not see a thing after saving the modules. Aug 26, 2021 at 14:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.