1. evensenj
  2. Commercial Templates
  3. Saturday, 16 May 2015
  4.  Subscribe via email
I have read how to change the label in the js file. It works fine, but I have a multi-language site and need the label to change according to the language file in use.

Do I need to create a separate template for each language? or is there a way to set the label as language variable and add it to my language file?

Thank you.
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Well, I'm finally back to working on this again... I got this working with the Lifestyle template. But the Journal template does not work. I commented out the lines in the scripts.php that matched the custom code you gave me to insert into the Head Custom Code on the template. The menu disappeared as expected when I commented out the code, but it does not appear when I add it to the Head Custom Code.

Any thoughts?
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

If no scripts.js exists then the same code can be found in your templates scripts.php (../templates/[YourTemplate]/php/scripts.php).

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you! I am using the Journal template and there is no script.js file. Where would I look for this code?
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Presuming you are using one of our more recent template releases, firstly you will need to remove the following from your templates scripts.js (../templates/[YourTemplate]/js/scripts.js)...


// Slicknav - Mobile Menu
$('.hornavmenu .hornav').slicknav();


You can then call the mobile menu script from within your templates parameters via the 'Custom Code -> Head Custom Code' and set the label...


<script>
jQuery(function(){
jQuery('.hornavmenu .hornav').slicknav({label: 'MENU'});
});
</script>


You can create a new template style for each of your languages, editing MENU to your own taste.

Ciarán
  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