Change Menu - PLEASE help me
Support desk for Multipurpose Quark Theme
- GK User
- Thu Mar 05, 2015 12:49 am
I have a website with onepage design: 4-5 classic menu links to anchor links. And in the menu i have a link to a contact page.
When i click to the contact page the other anchor links will be active but they dont go.
Can u help me?
When i click to the contact page the other anchor links will be active but they dont go.
Can u help me?
-
- Fresh Boarder
- GK User
- Thu Mar 05, 2015 7:16 am
Could you please post an url to your site?
-
- Moderator
- GK User
- Thu Mar 05, 2015 8:47 am
Hi. I sent u now a private message.
UPDATE:
http://h2072275.stratoserver.net/basari/
When i click "ÜBER UNS" -> its changed to http://h2072275.stratoserver.net/basari ... /ueber-uns
BUT:
i cannot click no more "FORMAUFBAUTEN" "MASCHINENPARK" (...)
Many Thanks
UPDATE:
http://h2072275.stratoserver.net/basari/
When i click "ÜBER UNS" -> its changed to http://h2072275.stratoserver.net/basari ... /ueber-uns
BUT:
i cannot click no more "FORMAUFBAUTEN" "MASCHINENPARK" (...)
Many Thanks
-
- Fresh Boarder
- GK User
- Thu Mar 05, 2015 7:10 pm
can someone help me? It is really urgently.
-
- Fresh Boarder
- GK User
- Sat Mar 07, 2015 7:57 pm
From what I see it works fine:
Clicking "Formaufbauten" in the menu moves site down:
http://h2072275.stratoserver.net/basari/#Entdecken
to first module.
Clicking "Formaufbauten" in the menu moves site down:
http://h2072275.stratoserver.net/basari/#Entdecken
to first module.
-
- Moderator
- GK User
- Sat Mar 07, 2015 9:36 pm
Oh, I can see the thing now. It looks like a bug. I'll report that to our dev team and will write back as soon as I'll get an answer.
-
- Moderator
- GK User
- Mon Mar 09, 2015 8:36 pm
Please edit gk.sctiprs.js file and replace this code:
with:
and let me know if that helped.
- Code: Select all
// smooth anchor scrolling
jQuery('a[href*="#"]').on('click', function (e) {
e.preventDefault();
if(this.hash !== '') {
if(this.hash !== '' && this.href.replace(this.hash, '') == window.location.href.replace(window.location.hash, '')) {
var target = jQuery(this.hash);
if(target.length && this.hash !== '#') {
jQuery('html, body').stop().animate({
'scrollTop': target.offset().top
}, 1000, 'swing', function () {
if(this.hash !== '#') {
window.location.hash = target.selector;
}
});
}
}
}
});
with:
- Code: Select all
// smooth anchor scrolling
jQuery('a[href*="#"]').on('click', function (e) {
e.preventDefault();
if(this.hash !== '') {
var target = jQuery(this.hash);
if(this.hash !== '' && this.href.replace(this.hash, '') == window.location.href.replace(window.location.hash, '')) {
if(target.length && this.hash !== '#') {
jQuery('html, body').stop().animate({
'scrollTop': target.offset().top
}, 1000, 'swing', function () {
if(this.hash !== '#') {
window.location.hash = target.selector;
}
});
} else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
window.location.href = this.href;
}
} else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
window.location.href = this.href;
}
}
});
and let me know if that helped.
-
- Moderator
- GK User
- Mon Jun 15, 2015 5:54 am
Hi there,
If I am in a sub page, the top menu anchors are not working. Because obviously those id's are not in that page.
The only way to go back at the specific anchor position i have to put index.php#anchor_id, but then I loose my scrolling effect on the homepage.
Why you are not enabling the 2 menu feature like gk_john to solve this?
Is there any other solution?
check my page in http://108.174.149.222/~advocate/ The NEWS menu item is an example with index.php#anchor_id.
If I am in a sub page, the top menu anchors are not working. Because obviously those id's are not in that page.
The only way to go back at the specific anchor position i have to put index.php#anchor_id, but then I loose my scrolling effect on the homepage.
Why you are not enabling the 2 menu feature like gk_john to solve this?
Is there any other solution?
check my page in http://108.174.149.222/~advocate/ The NEWS menu item is an example with index.php#anchor_id.
-
- Fresh Boarder
- GK User
- Mon Jun 15, 2015 5:58 am
Found the solution on my question and I will leave it here for anyone that is looking for the same question.
Anchor links work fine on both home page and subpages when you create External URL menu and put it as ./anchor_id
Anchor links work fine on both home page and subpages when you create External URL menu and put it as ./anchor_id
-
- Fresh Boarder
- GK User
- Mon Jun 15, 2015 6:13 am
@dart - and have you tried provided solution?
If you change:
http://yoursite.com/#module_id
to
http://yoursite.com/module_id
it will not give you same result.
If you change:
http://yoursite.com/#module_id
to
http://yoursite.com/module_id
it will not give you same result.
-
- Moderator
- GK User
- Mon Jun 15, 2015 6:24 am
@Cyberek I did not get what you mean by module id.. I am using <div id="alias_name" actually on each module. and I link menu item with that id.
-
- Fresh Boarder
- GK User
- Tue Jun 16, 2015 3:19 pm
Ok, thanks for the info.
Is there anything else I can help you with regarding this topic?
Is there anything else I can help you with regarding this topic?
-
- Moderator
12 posts
• Page 1 of 1