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. Single background image across all rows / the whole page?

Single background image across all rows / the whole page?

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 271 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.
  • C Offline
    C Offline
    charleyray
    wrote on last edited by
    #1

    Hi guys

    Thank you SO much for Lay Theme - it's absolutely brilliant!

    I am trying to put a background image across one of my pages.

    E.g. having these flowers below as one single image down the whole page, rather than having different images on each row.

    Screenshot 2021-05-19 at 15.27.43.jpg

    I've searched your website / this forum and can only see how to set each row with a different image, or set a background image for the whole website in "Customize" → "Background". Both of which aren't the effect I'm looking for.

    Is this possible?

    Thanks so much :-)
    Charley

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

      Dear Charley

      @charleyray

      This is possible šŸŒ


      When adding an Image to the Gridder, you can 'right-click' either the Element or the Row and set an "HTML Class or ID" :

      Screen Shot 2021-05-20 at 4.27.54 PM.png


      In the example above I have filled the row with my desired image and given it the custom Class name "special".

      Then within:

      Customize > CSS

      Or:

      Lay Options > Custom CSS & HTML > Custom CSS

      I have added the following code:

      .special img{
      	position:fixed;
      	width:100vw;
      	height:auto;
      }
      

      This targets the row with the class "special" and tells the Image inside to follow these CSS Rules.


      Now the result:

      Screen Shot 2021-05-20 at 4.30.41 PM.png

      This Image of Clouds will remain in the background as i scroll up and down the page and keep a width of '100vw' ( 100% of the browser's viewport width).

      You may wish to add the CSS 'z-index' property to the above code if certain elements are hidden behind your image:

      https://www.w3schools.com/cssref/pr_pos_z-index.asp

      Additional link that may aid you:

      http://laythemeforum.com:4567/topic/6407/different-background-images/4?_=1611130159766


      Best wishes Charley and hope this helps you, Thank you for the kind words about Lay Theme and good luck! ✨

      Sincerely
      Richard
      1 Reply Last reply
      0
      • C Offline
        C Offline
        charleyray
        wrote on last edited by
        #3

        @Richard said in Single background image across all rows / the whole page?:

        This targets the row with the class "special" and tells the Image inside to follow these CSS Rules.

        Amazing - thank you so much Richard!!!
        That's perfect.

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

          Dear @charleyray

          No worries & best of luck with the rest of your Lay project! 🌼


          Sincerely
          Richard
          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