Site title link only works once on homepage
-
Hi Armin,
I've noticed the site title link only works the first time you click it when you are on the homepage. I have checked another Lay based sites and the same thing happens.
Thanks in advance.
-
arminunruh Global Moderatorwrote on Sep 20, 2016, 7:09 AM last edited by arminunruh Sep 20, 2016, 5:28 AM
Well if you are on the homepage already why should the site title link just refresh the homepage?
I think the bug/problem here is rather, that you can click on the site title and it refreshes. I think when you are on the frontpage and you click the site title, then nothing should happen. Going to write that down and fix it. -
I understand your point. In my case I'm using a fullscreen slider on my homepage, and it would be useful for the navigation to go back to the first project "thumbnail" using the project title link.
-
Ok.
Hmm maybe this helps?
http://laythemeforum.com:4567/topic/654/fullscreen-slider-scroll-to-bottom-button/6There im giving an example of how to go to the third slide when you click a button. You could use that example to make a button go to the first slide I think.
-
Thanks for that resource, but it doesn't work from one page to another, right? It wouldn't work from the About page, for example.
-
arminunruh Global Moderatorwrote on Sep 29, 2016, 8:49 AM last edited by arminunruh Sep 29, 2016, 4:56 AM
I'm not sure if I understand your question right :O
ok so the menu-item of the page you're on always has the class ".current-menu-item". This means you can do:
<script> jQuery(document).on("click", ".current-menu-item a", function(event) { event.preventDefault(); jQuery.fn.fullpage.moveTo(1); }); </script>
-
Thanks for the answer, sorry if I didn't explain myself well.
What I mean is: If I have two pages, one for the index where the fullscreen slider is, and another one for the about, if I'm in the about page, the link that I've created with the code you provided me will not link me to the first slide on the index, I would need to have two links: one linked to the index to use from the about, and another one used on the index linked to the first slide.
-
hmm maybe I understand it better if you can give me a link to the website where you want to do this. I'm a bit confused about what you want to do.
-
I'm working on localhost, as soon as I upload it I'll send you the link.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it