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. Bug Reports
  3. Site automatically refreshes in certain browsers when switching between desktop and mobile styles

Site automatically refreshes in certain browsers when switching between desktop and mobile styles

Scheduled Pinned Locked Moved Bug Reports
8 Posts 3 Posters 387 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.
  • A Offline
    A Offline
    alexbruno
    wrote on May 28, 2019, 7:07 PM last edited by
    #1

    Site here

    In Chrome (Mac/PC/iOS) and Safari (iOS), some pages will automatically refresh when switching between desktop/mobile styles (video example ). The automatic refreshing doesn't seem to happen in Firefox (Mac).

    I think it has to do with custom phone layouts? For example, this page does not have a phone layout setup, and does not refresh when switching between mobile/desktop CSS.

    Wondering if this is a technical necessity of the phone layout feature, maybe to render new HTML? Or a bug? I tried searching the documentation for info on automatic page refreshing but didn't see anything.

    If there's any other info I can provide please let me know. Appreciate any help!

    Thank you.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on May 30, 2019, 10:35 AM last edited by
      #2

      Dear @alexbruno
      the page should not refresh on resize.
      Do you use any plugins or custom code?

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      1
      • A Offline
        A Offline
        alexbruno
        wrote on May 30, 2019, 6:27 PM last edited by alexbruno May 30, 2019, 8:25 PM
        #3

        Hi @mariusjopen

        Thank you for the clarification.

        I've tried removing all custom css + html, deactivating all WP plugins, deactivating Chrome extensions, and clearing the cache, but the auto-refresh still happens on some pages.

        Still trying to narrow down what is making the refresh happen on these particular pages.

        ///

        Some details about my install:

        • LayTheme version: 2.7.6
        • Wordpress version: 5.2.1
        • Apache Version: 2.4.39
        • PHP Version: 7.2.13
        • MySQL Version: 10.2.12-MariaDB-log
        1 Reply Last reply
        0
        • A Offline
          A Offline
          alexbruno
          wrote on May 30, 2019, 7:00 PM last edited by
          #4

          When I click on the URL for "work" in my primary navigation, this is what network inspector shows:
          network inspector showing normal requests

          When I resize the page and it auto-refreshes, this is what it shows:
          network inspector showing extra 301 redirect on resize

          So maybe there's an extra redirect being added in here that's causing the issue... ?

          Sorry for multiple posts, just trying to keep track of the problem.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mariusjopen
            Global Moderator
            wrote on Jun 4, 2019, 6:47 AM last edited by
            #5

            Dear @alexbruno
            ok. Thank you for going so deep in it to explain the issue.

            We will have a look and see what is going on.

            :-)

            All the best and thank you for using LayTheme.

            Marius

            www.mariusjopen.world

            1 Reply Last reply
            1
            • A Offline
              A Offline
              alexbruno
              wrote on Jun 5, 2019, 5:12 PM last edited by
              #6

              Thank you Marius. I'll keep testing + posting results in the meantime.

              1 Reply Last reply
              1
              • A Offline
                A Offline
                arminunruh
                Global Moderator
                wrote on Jun 6, 2019, 4:00 PM last edited by
                #7

                Hey,

                When you use a shortcode in your website, your page will refresh.
                This is to make shortcodes work properly with lay theme.

                I see you use a shortcode as your footer menu, you could try to make the footer not use a shortcode.

                A 1 Reply Last reply Jun 7, 2019, 6:10 PM
                1
                • A arminunruh
                  Jun 6, 2019, 4:00 PM

                  Hey,

                  When you use a shortcode in your website, your page will refresh.
                  This is to make shortcodes work properly with lay theme.

                  I see you use a shortcode as your footer menu, you could try to make the footer not use a shortcode.

                  A Offline
                  A Offline
                  alexbruno
                  wrote on Jun 7, 2019, 6:10 PM last edited by alexbruno Jun 7, 2019, 2:11 PM
                  #8

                  Armin, thank you very much! This is indeed what is happening.

                  The presence of a shortcode module (even with my shortcode plugin deactivated) will cause the page to refresh upon resizing the browser window to mobile/desktop width.

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

                  4/8

                  May 30, 2019, 7:00 PM


                  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
                  A
                  atnels
                  2 minutes ago
                  A
                  alasdair17
                  5 minutes ago
                  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.
                  4 out of 8
                  • First post
                    4/8
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search