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. Instagram browser height

Instagram browser height

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 256 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.
  • H Offline
    H Offline
    Hugo Le Corre
    wrote on Feb 13, 2024, 8:01 AM last edited by
    #1

    Hello,

    I've set a custom row height of 100vh for every row with the fullscreen slider enabled. Everything works perfectly except for the Instagram browser. As you can see in the two images, the Instagram browser isn't displaying correctly; the caption seems to be hidden. I've considered using a dvh unit to solve the problem, but it doesn't seem to be supported.

    Do any of you have a solution for this?

    Thank you so much in advance.

    Best,

    Hugo

    IMG_1042 Medium.jpeg IMG_1043 Medium.jpeg

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Feb 13, 2024, 12:59 PM last edited by
      #2

      can you try

      100svh

      does that work?
      it also says the valid units here

      Screenshot 2024-02-13 at 13.59.33.png

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hugo Le Corre
        wrote on Feb 13, 2024, 1:20 PM last edited by
        #3

        Hello, I tried with 100svh and it's unfortunately not working.
        Any other idea ? Thanks !

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Feb 13, 2024, 1:28 PM last edited by
          #4

          ok whats ur website address?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Feb 13, 2024, 1:29 PM last edited by
            #5

            can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com ?

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hugo Le Corre
              wrote on Feb 13, 2024, 2:39 PM last edited by
              #6

              Just sent you the informations. Thanks

              1 Reply Last reply
              0
              • A Offline
                A Offline
                arminunruh
                Global Moderator
                wrote on Feb 20, 2024, 9:54 AM last edited by
                #7

                hey sorry this took a while. i fixed it:

                IMG_2523.PNG

                after googling about it a little i realized 100vh and 100svh just dont work as expected in the instagram browser

                i added this code to your website in lay options → custom css& html → custom <head> code:

                <script>
                    var ua = navigator.userAgent || navigator.vendor || window.opera;
                    var isInstagram = (ua.indexOf('Instagram') > -1) ? true : false;
                
                    if (document.documentElement.classList ){
                    	if (isInstagram) {
                    		window.document.body.classList.add('instagram-browser');
                    		window.laytheme.on("newpageshown", function(){
                    		    //is front page?:
                    		    if( jQuery("body").hasClass("id-2294") ) {
                  		            jQuery(".lay-content").css('min-height', 'calc( 100vh - 60px )');
                                    jQuery(".grid").css('min-height', 'calc( 100vh - 60px )');
                                    jQuery(".fp-section, .fp-slide, .fp-tableCell").css('height', 'calc( 100vh - 60px )');
                                    jQuery(".row, .row-inner, .column-wrap").css('min-height', 'calc( 100vh - 60px )');  
                    		    }
                    		})
                    	}
                    }
                </script>
                

                it checks if you are on an ig browser and then just sizes all important divs differently
                the script also checks if we are currently on the page with the id: 2294 because thats the frontpage where u have the issue

                sources:
                https://www.reddit.com/r/web_design/comments/law4yl/instagram_how_many_baby_chicks_need_to_die_before/

                https://jsfiddle.net/toshuu/ab510Lzf/1/

                does it work for you too now?

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

                1/7

                Feb 13, 2024, 8:01 AM


                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.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Search