Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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 1.4k Views 2 Watching
  • 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
    A
    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
      arminunruhA
      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
        A
        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
          M
          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
            M
            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
              mariusjopenM
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Online Users
              I
              itsbadjujuju
              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