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. Site Title and Menu CSS animation persistence + iframe mobile viewport fill size

Site Title and Menu CSS animation persistence + iframe mobile viewport fill size

Scheduled Pinned Locked Moved General Discussion
cssmobileiframemenusite title
14 Posts 3 Posters 661 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.
  • S Offline
    S Offline
    sebastianpetrov
    wrote on last edited by
    #5

    Hey Richard, I'm really sorry to be a pain. I was wondering if you had been able to log into the staging site? Isn't it strange that even without any plugins active or any other custom code that the menu and site title are hard refreshing on page load? Isn't that a bug of laytheme?

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

      Dear Sebastian

      @sebastianpetrov

      Not a pain at all šŸŒ Will need to take another look, šŸ” i agree that it's not normal behaviour if AJAX compatibility is turned off.


      Best
      Richard
      S 1 Reply Last reply
      0
      • RichardR Richard

        Dear Sebastian

        @sebastianpetrov

        Not a pain at all šŸŒ Will need to take another look, šŸ” i agree that it's not normal behaviour if AJAX compatibility is turned off.


        Best
        Richard
        S Offline
        S Offline
        sebastianpetrov
        wrote on last edited by
        #7

        @Richard

        I just found an easy workaround for getting i-frames to fill the full viewport correctly on mobile and it seems to be working flawlessly.

        In case someone else needs it or I need to find this again...

        Pasting the link to the web-page that describes the fix - almost effortless to implement in Laytheme.

        https://css-tricks.com/the-trick-to-viewport-units-on-mobile/

        1 Reply Last reply
        1
        • arminunruhA Online
          arminunruhA Online
          arminunruh
          Global Moderator
          wrote on last edited by
          #8

          oh very nice, i didnt know that one!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sebastianpetrov
            wrote on last edited by
            #9

            Hey,

            How are you?

            I sort of forgot about this and now I'm preparing to launch content updates to beautifulbeautiful.xyz

            I can see its not just the css animation that is reloaded between pages, but the site title and menus themselves are reloading. Actually it appears like a full page hard refresh is happening rather than the graceful Ajax partial loads Laytheme became so popular for.

            I've tried toggling Ajax Compatibility on/off, disabling all plugins, disabling all custom code and opening the site in a fresh incognito window and I'm still getting full page hard refresh. I can see the site title and menus blink between page loads.

            Are there any other troubleshooting steps I can take? Can you please help me with this?

            Happy to share staging site details if that will help.

            Thanks so much and look forward to hearing from you.

            Sebastian

            1 Reply Last reply
            0
            • arminunruhA Online
              arminunruhA Online
              arminunruh
              Global Moderator
              wrote on last edited by
              #10

              this is what makes a hard refresh:

              • disable ajax activated
              • using links that are not generated by laytheme, but by yourself, and they are missing the data- attributes
              • woocommerce plugin is active
              • you use shortcodes, for example a shortcode in the footer
              S 1 Reply Last reply
              0
              • arminunruhA arminunruh

                this is what makes a hard refresh:

                • disable ajax activated
                • using links that are not generated by laytheme, but by yourself, and they are missing the data- attributes
                • woocommerce plugin is active
                • you use shortcodes, for example a shortcode in the footer
                S Offline
                S Offline
                sebastianpetrov
                wrote on last edited by
                #11

                @arminunruh Thanks so much for your quick reply.

                I'm pretty sure my problem is shortcode related then.

                I'm happy to kill the mailchimp shortcode I was using in the footer. However, there's another shortcode I'd like to keep - its a Forminator form.

                My gut says it goes in 1 of 2 directions - please let me know if I'm completely off the point!

                Is Laytheme seeing the shortcode and then forcing a page refresh to improve compatibility with short codes in general? Are there any links to information you can share that might help me try different workarounds?

                Or perhaps some shortcodes cause a page refresh and others don't based on how they work? Any advice on how I can attemp to debug this?

                S 1 Reply Last reply
                0
                • S sebastianpetrov

                  @arminunruh Thanks so much for your quick reply.

                  I'm pretty sure my problem is shortcode related then.

                  I'm happy to kill the mailchimp shortcode I was using in the footer. However, there's another shortcode I'd like to keep - its a Forminator form.

                  My gut says it goes in 1 of 2 directions - please let me know if I'm completely off the point!

                  Is Laytheme seeing the shortcode and then forcing a page refresh to improve compatibility with short codes in general? Are there any links to information you can share that might help me try different workarounds?

                  Or perhaps some shortcodes cause a page refresh and others don't based on how they work? Any advice on how I can attemp to debug this?

                  S Offline
                  S Offline
                  sebastianpetrov
                  wrote on last edited by
                  #12

                  @sebastianpetrov hey, good morning ā˜€ļø@arminunruh have you seen this last message?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sebastianpetrov
                    wrote on last edited by
                    #13

                    Hey @Richard @arminunruh

                    I've removed a non-essential shortcode in the footer, however there is one shortcode on one page for a "forminator" form that has to stay.

                    I'd love to dig in and try to find a workaround if there is one.

                    Is there any documentation available on how laytheme is treating shortcodes or how to disable the hard refresh when shortcodes are present?

                    Please let me know? The new site is so smooth aside from this one page that hard refreshes and I don't know if I can move on with my life knowing this page hard refreshes when it could be another smoooth page load šŸ˜‚

                    1 Reply Last reply
                    0
                    • arminunruhA Online
                      arminunruhA Online
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #14

                      Is Laytheme seeing the shortcode and then forcing a page refresh to improve compatibility with short codes in general?

                      yes

                      Are there any links to information you can share that might help me try different workarounds?

                      no

                      i don't think there is a workaround

                      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
                      arminunruhA
                      arminunruh
                      G
                      Glyph
                      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