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. couple of questions

couple of questions

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 151 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.
  • P Offline
    P Offline
    pipaslol
    wrote on last edited by
    #1

    Hi, i have 3 questions —
    First, I would like to know how i can get a column fixed (the left column). When i try to give it an ID and then give it a fixed property thru CSS, it looses all the other properties, and acts weird.
    Secondly, the carrousel caption moves place when the aspect ratio of the photos change.
    Lastly, I have a weather api on my website, and only works on the desktop version. Why would this be?
    My website is: joaomalexandre.com
    Thank you

    1 Reply Last reply
    0
    • F Offline
      F Offline
      felix_rabe
      wrote on last edited by felix_rabe
      #2

      @pipaslol reagarding your first question:
      when making the element fixed you would also have to give him a "width", "left", "padding" etc. to make it look like you want, because by "fixed" it gets taken out and placed on top of all content.

      1 Reply Last reply
      1
      • P Offline
        P Offline
        pipaslol
        wrote on last edited by
        #3

        Thank you! This helped :)

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

          Secondly, the carrousel caption moves place when the aspect ratio of the photos change.

          Screenshot 2024-03-18 at 14.38.32.png
          turn this off in lay options → carousel addon

          Lastly, I have a weather api on my website, and only works on the desktop version. Why would this be?

          custom phone grid and the normal layout produce the html content twice on a website :O

          so instead of:

          document.getElementById("cityLisbon").textContent = city;
          document.getElementById("tempLisbon").textContent = temp;
          

          u need

          jQuery("#cityLisbon").each(function(){
          jQuery(this).text(city);
          });
          jQuery("#tempLisbon").each(function(){
          jQuery(this).text(temp);
          });
          

          same goes for the other "berlin" div

          P 1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            Secondly, the carrousel caption moves place when the aspect ratio of the photos change.

            this issue looks suspicious on your website

            i recently had to change things for this functionality and there may be still an issue with it

            i think there is an issue.
            i just saw that if i choose the same position for the caption and the number (for example "left") in lay options → carousel addon,
            then the number is simply not shown if the caption for the slides are empty

            im releasing an update that fixes this now

            u could update your carousel addon
            u could then remove your empty captions
            and make sure this setting is off

            Screenshot 2024-03-18 at 14.57.41.png

            and it that still doesn't fix it:

            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
            • arminunruhA arminunruh

              Secondly, the carrousel caption moves place when the aspect ratio of the photos change.

              Screenshot 2024-03-18 at 14.38.32.png
              turn this off in lay options → carousel addon

              Lastly, I have a weather api on my website, and only works on the desktop version. Why would this be?

              custom phone grid and the normal layout produce the html content twice on a website :O

              so instead of:

              document.getElementById("cityLisbon").textContent = city;
              document.getElementById("tempLisbon").textContent = temp;
              

              u need

              jQuery("#cityLisbon").each(function(){
              jQuery(this).text(city);
              });
              jQuery("#tempLisbon").each(function(){
              jQuery(this).text(temp);
              });
              

              same goes for the other "berlin" div

              P Offline
              P Offline
              pipaslol
              wrote on last edited by
              #6

              @arminunruh Thank you so much with the help, i managed to get thru the caption problem following your advice and running the latest theme update. Unfortunately, changing the javascript like you told me to didn't yet resolve the mobile problem..
              Thank you tho!

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

                can you try to change your divs so they dont use id's but classes?

                so <div id="cityLisbon">…</div> would become <div class="cityLisbon">…</div>

                then change ur js to use classes too instead of id's

                jQuery(".cityLisbon").each(function(){
                jQuery(this).text(city);
                });
                jQuery(".tempLisbon").each(function(){
                jQuery(this).text(temp);
                });
                

                this could be the cause because i think maybe the browser expects ids to be unique and expects that there are no two elements with the same ids

                since we have duplicate elements because we use a custom phone layout here, this is not the case

                P 1 Reply Last reply
                0
                • arminunruhA arminunruh

                  can you try to change your divs so they dont use id's but classes?

                  so <div id="cityLisbon">…</div> would become <div class="cityLisbon">…</div>

                  then change ur js to use classes too instead of id's

                  jQuery(".cityLisbon").each(function(){
                  jQuery(this).text(city);
                  });
                  jQuery(".tempLisbon").each(function(){
                  jQuery(this).text(temp);
                  });
                  

                  this could be the cause because i think maybe the browser expects ids to be unique and expects that there are no two elements with the same ids

                  since we have duplicate elements because we use a custom phone layout here, this is not the case

                  P Offline
                  P Offline
                  pipaslol
                  wrote on last edited by
                  #8

                  @arminunruh Thank you so much, that was it :)

                  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