1. jsmith
  2. Commercial Templates
  3. Tuesday, 19 March 2013
  4.  Subscribe via email
Hi there. I would like to include some custom code into webpage html body, via Joomla Template Manager / Options / Custom code / Body Custom Code. Unfortunately it looks that my code is not included into webpage. The same code inserted directly into the BODY section of ./j51_oxygen/index.php works fine. I think that the same problem could be with Head Custom Code. Custom CSS works without any problems.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi John

Yes this was an issue of some of the earlier releases of this template. We hope to have resolved this problem with the latest download of the template (http://www.joomla51.com/templates/j51-oxygen-free-joomla-3-template).

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciarán,
I'm afraid that the template is still not working properly. I have downloaded newest version of Oxygen from Your repository and applied it. My custom code is still not present in the BODY of webpage.
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Opps... sorry John.. it appears the issues is still present. Thank you for bringing this to our attention.

In your templates index.php (../templates/j51_oxygen/index.php) replace the following..


[code type=css]<?php echo ($head_tracker_code); ?>[/code]

with...


[code type=css]<?php echo ($head_custom_code); ?>[/code]

Also replace...


[code type=css]<?php echo ($body_tracker_code); ?>[/code]

with...


[code type=css]<?php echo ($body_custom_code); ?>[/code]

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank You Ciarán,
You helped me a lot but it was not the entire solution. It was necessary to also add the following lines:

//Custom head and body
$head_custom_code = $this->params->get('head_custom_code');
$body_custom_code = $this->params->get('body_custom_code');

into the ./j51_oxygen/php/variables.php

Problem solved.
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
thanks john and ciaran

i can confirm this fix works and that both bits of code are needed
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok