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. Positioning of element – gridder

Positioning of element – gridder

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 449 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.
  • D Offline
    D Offline
    DLB
    wrote last edited by
    #1

    Hey Armin,

    On this site designed for a client, there is an SVG graphic on the landing page with some CSS animation applied to it (to make it rotate). The positioning of the graphic should be centrally aligned – it has the following CSS applied to it for its positioning…

    .witta-logo-home-hero {
    	position: fixed;
    	top: 50%;
    	left: 50%;
    	transform: translate(-50%, -50%);
    	-webkit-transform: translate(-50%, -50%);
    	-moz-transform: translate(-50%, -50%);
    	-o-transform: translate(-50%, -50%);
    	-ms-transform: translate(-50%, -50%);	
    }
    

    This works fine when you first arrive at the homepage. However, when you click onto another page (ie: About page etc.) and then click back to the homepage via the site title, the positioning of the SVG graphic appears off-centre. You have to refresh the page again for it to appear in the correct position. This is especially noticeable on Safari and Firefox desktop browsers, and even more so for Chrome, Safari, and Firefox on mobile devices.

    On mobile devices, the graphic is sized appropriately for small screens, this loads fine first time round. However, when clicking back to the homepage from another page, the graphic shows it desktop size and not its mobile size, plus it’s way off-centre too. It’s only when you refresh the page that the correct size and positioning appears.

    The central positioning of the SVG graphic worked fine before updating to the latest version of Lay on desktop and mobile devices on all browser types. This has only happened since updating to v9.7.8!

    Any idea why this happens? Let me know if you need anymore info.

    Thanks!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DLB
      wrote last edited by
      #2

      In addition to the above issue, I just noticed that these warning messages are appearing on the site currently — see attached screenshot. They only disappear once the browser is refreshed.

      Can this be fixed?

      Screenshot 2025-09-26 at 09.53.35.png

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

        hey!!

        in your wp-config.php file, can you turn off WP_DEBUG please:
        https://chatgpt.com/c/68d78f47-ba40-8325-81fa-e3f45b3d647c

        make sure this line:
        define( 'WP_DEBUG', true );

        looks like:
        define( 'WP_DEBUG', false );

        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