Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom code section not working #559

Open
JTBlum opened this issue Oct 1, 2019 · 0 comments
Open

Custom code section not working #559

JTBlum opened this issue Oct 1, 2019 · 0 comments

Comments

@JTBlum
Copy link

JTBlum commented Oct 1, 2019

To reproduce:

  1. Start with a fresh install of Joomla 3.9.12
  2. Install the T3 Framework from master
  3. Install the T3 Framework blank template from master
  4. Switch the default template style to the T3 blank template
  5. Add the following custom code declarations to the appropriate settings in the template's "Custom Code" tab:
  • <script type="text/javascript">alert("After <head>");</script>
  • <script type="text/javascript">jQuery(document).ready(function(){ alert("Before </head>"); });</script>
  • <script type="text/javascript">jQuery(document).ready(function(){ alert("After <body>"); });</script>
  • <script type="text/javascript">jQuery(document).ready(function(){ alert("Before </body>"); });</script>

Reload the front page. The JavaScript won't execute because it's not in the source code.

Edit: Or it won't work because I've butchered it. That's fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant