Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. wrong layout displayed / reload

wrong layout displayed / reload

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 504 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FesT
    wrote on last edited by
    #1

    Hey,
    I am working right now on a test version of a website (test-wp-final.felixsteinhoff.de):

    1. 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?

    2. 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

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dear @FesT

      did you have a look here?
      http://laytheme.com/documentation.html#custom-javascript

      Does this also solve the issue with your first point?

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • F Offline
        F Offline
        FesT
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • mariusjopenM Offline
          mariusjopenM Offline
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          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

          www.mariusjopen.world

          1 Reply Last reply
          0
          • F Offline
            F Offline
            FesT
            wrote on last edited by FesT
            #5

            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

            1 Reply Last reply
            0
            • mariusjopenM Offline
              mariusjopenM Offline
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              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

              www.mariusjopen.world

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              I also code custom websites or custom Lay features.
              💿 Email me here: 💿
              info@laytheme.com

              Before you post:
              1. When using a WordPress Cache plugin, disable it or clear your cache.
              2. Update Lay Theme and all Lay Theme Addons
              3. Disable all Plugins
              4. 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:
              1. Post a link to where the problem is
              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
              Online Users
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
              laytheme.com
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search