-
AuthorPosts
-
March 27, 2014 at 12:04 pm #528357
<em>@Ninja Lead 418285 wrote:</em><blockquote>My apology, I just tried to get it solved again. Please check and let me know if the issue remains at your side.</blockquote>
Great, Ninja!
The menus work anymore. Also links tags work (the other question I had to make). Congratulations.
One question: can you explain me how you did it? What is the secret?
Thank you very much and God bless you.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 28, 2014 at 5:10 am #528417<blockquote>One question: can you explain me how you did it? What is the secret?</blockquote>
Look at the templates/ja_onepage/js/script.js file and you will see this code:
var target = this.href.replace(/.*(?=#[^s]+$)/, '');
if (target && ($(target).length)) {} else { //not found
var home = $('.navbar ul li a.home').attr('href');
if (home) {
window.location.href = home.replace(/([^#]*)(.*)/, '$1') + target;
}
}
And in the home page of your site, you need to insert “home” into the Link CSS Style field as in this screenshot:
-
1 user says Thank You to Ninja Lead for this useful post
April 2, 2014 at 11:53 am #529187Understood.
Thank you very much, Ninja Lead!
AuthorPostsThis topic contains 33 replies, has 3 voices, and was last updated by josep masso 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum