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. Change background for a specific page.

Change background for a specific page.

Scheduled Pinned Locked Moved General Discussion
6 Posts 4 Posters 993 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.
  • A Offline
    A Offline
    arno_aubry
    wrote on last edited by
    #1

    Hi !
    First of all, thank you for this wonderful theme, documentation, and videos. It's easy and broke my reluctance to code.

    I'm pretty a newbie with html / css and I really tried to do it by myself but can't find why it's not working. I'm trying to add a background image for a specific page of my girlfriend's website.

    This is the page I want to change:
    http://charleneguyonmathe.com/overview

    In my CSS, I added, as you suggested on your tutorial, a class with background url:

    body.slug-overview{background:url('http://charleneguyonmathe.com/wp-content/uploads/2016/12/background-v2.jpg'}

    Thank you for your help

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

      Hey thanks a lot!

      There is just one minor thing in your CSS:

      body.slug-overview{background:url('http://charleneguyonmathe.com/wp-content/uploads/2016/12/background-v2.jpg'}
      

      should be

      body.slug-overview{
      background-image: url("http://charleneguyonmathe.com/wp-content/uploads/2016/12/background-v2.jpg");
      }
      

      source:
      https://developer.mozilla.org/en/docs/Web/CSS/background-image

      Hope it works for you :)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        arno_aubry
        wrote on last edited by
        #3

        Thank you !

        I'm confused I made you loose your time...
        Sometimes the solution is so easy you don't see it !!

        1 Reply Last reply
        0
        • A arno_aubry

          Hi !
          First of all, thank you for this wonderful theme, documentation, and videos. It's easy and broke my reluctance to code.

          I'm pretty a newbie with html / css and I really tried to do it by myself but can't find why it's not working. I'm trying to add a background image for a specific page of my girlfriend's website.

          This is the page I want to change:
          http://charleneguyonmathe.com/overview

          In my CSS, I added, as you suggested on your tutorial, a class with background url:

          body.slug-overview{background:url('http://charleneguyonmathe.com/wp-content/uploads/2016/12/background-v2.jpg'}

          Thank you for your help

          M Offline
          M Offline
          marcelgross
          wrote on last edited by
          #4

          @arno_aubry or @arminunruh could you post the link to the tutorial, that is meant in the first question? I'm searching for a solution of the same topic and as it seems you were successfull. Thats why the link would help me a lot.

          Cheers
          and thanks Armin for the wonderful theme and support-Forum!

          1 Reply Last reply
          0
          • M Offline
            M Offline
            marcelgross
            wrote on last edited by
            #5

            I think I found it myself. Thanks anyway!
            http://laytheme.com/documentation.html#css-based-on-current-page

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

              Dear @marcelgross
              great!
              Happy you found it!

              Best!

              Marius

              www.mariusjopen.world

              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
              A
              alasdair17
              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