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. Debug changing page colours (Safari)

Debug changing page colours (Safari)

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 141 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.
  • J Offline
    J Offline
    joeclarkx
    wrote on last edited by
    #1

    Hi, I'm using a script to give randomised page colours.

    I have a problem with safari specifically- and only on one page

    http://corneliabaltes.com/
    The 'News' page takes maybe a minute to return a coloured background. This is a problem as all text elements and menus on the page are white.

    The script is:

    <script>
    const colors = ["#FF7575", "#D69D00", "#FF5347", "#1BDA91", "#00ABF5", "#F38816"];
    
    window.onload = () => {
      const colorToSet = colors[Math.floor(Math.random() * colors.length)];
      document.querySelector("body").style.backgroundColor = colorToSet;
    };
    

    I don't have the technical chops to even begin troubleshooting this. Any ideas?

    I have already purged cache and also tried installing jetpack CDN...

    Thanks!

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

      Dear @joeclarkx

      Great Website! šŸŒ

      This CSS is responsible i believe:

      #grid, .cover-region-desktop .cover-inner {
          /* background-color: #ffffff; */
      }
      

      Screen Shot 2021-06-27 at 12.21.34 PM.png

      Could you please try changing the Gridder's background colour to 'Clear'

      Gridder > Set Background Color > Clear

      Screen Shot 2021-06-27 at 12.37.26 PM.png


      Best wishes @joeclarkx and have a wonderful day, talk soon ✨

      Richard
      1 Reply Last reply
      0
      • J Offline
        J Offline
        joeclarkx
        wrote on last edited by
        #3

        Hey

        Thanks so much for the reply.

        Actually the home page is intentionally set to white as an overlay.

        The problem I have is the that only the News page is loading slowly. Very Slowly. I have started wondering if the problem might be the instagram embed. Thats the only thing that makes it different to any of the other pages...

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

          Dear @joeclarkx

          On Lay Theme's documentation page is a section they may help you with speeding up your website! Hope this helps šŸŒ

          https://laytheme.com/documentation.html#speedingup


          Best wishes and have a wonderful day 🌼
          Richard
          1 Reply Last reply
          0
          • J Offline
            J Offline
            joeclarkx
            wrote on last edited by
            #5

            Hey Richard

            Thats a great resource. I have already had a look at it and implemented what I could.

            As its one particular page that I'm struggling with I'm inclined to think its some code that needs troubleshooting. I parked it for a bit, but I'll have another look. I'm guessing it may be the instagram embebd.

            Best
            Joe

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

              Thanks for the update Joe, best wishes šŸŒ

              @joeclarkx
              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