wrong layout displayed / reload
-
Hey,
I am working right now on a test version of a website (test-wp-final.felixsteinhoff.de):-
When I am navigating from the MAINPAGE to STACK, the layout displays wrong, after a reload it gets right. Why is that? How can I avoid it?
-
I have insert some scripts on the MAINPAGE so that viewport always centers randomly over an image. And inserted a alternative navigation through the mouse. When I go again from the MAINPAGE to STACK the navigation arrows are still displayed. So the new site doesn't reload. Can I force Laytheme to reload the page when moving from one to the other site?
Or is there a way to insert this css and html scripts through Laytheme on a single page? (Right now it is insert through a plugin.)
Best
Felix -
-
Dear @FesT
did you have a look here?
http://laytheme.com/documentation.html#custom-javascriptDoes this also solve the issue with your first point?
Best!
Marius
-
Dear @mariusjopen,
thanks for the answer. But actually it dosn't help.I have the script already inserted like that:
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
if(type == "page" && obj.id == 9){
setRandomPageView();
}
});But in this case its the main page, if i navigate to the next page the properties of the script wont be overwritten. Thats all what causes the problem I think.
Best
Felix -
Dear @FesT
so this does not work for you?
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj){ if(type == "project" && obj.id == 1){ console.log("fantastic!"); } }); </script>
As a test…
Best!
Marius
-
Dear @mariusjopen,
yes, that works. As I said the script is already inserted and works fine.
I have some how the opposite problem, when i come to the landing page the script runs just fine. But I need to unrun / override the properties of the script when i go to the next page.
Do you understand what I mean?Try this, then you see what i mean: Start here, the site is displayed correctly. Then go to Stack, its displayed wrong and still has the properties of the landing page. Now reload, then Stack ist displayed correctly. Go to home, now home is displayed wrong, even so the script runs.
I hope you can help me.
Best Felix -
Dear @FesT
can you send me a PM with a link to this post, username and password?
I will then have a look.Best!
Marius
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