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. Color of Silder Backround

Color of Silder Backround

Scheduled Pinned Locked Moved General Discussion
10 Posts 2 Posters 664 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.
  • Y Offline
    Y Offline
    yannickzs
    wrote on last edited by
    #1

    Hey Armin,

    first of all: Thanks for the awesome theme!

    I wanted to change the backgrounds of my carousels individually, as you described in http://laythemeforum.com:4567/topic/1035/carousel-text-slide-background-color/2

    Unfortunally I can't seem to make it work. It does work if I use the code:

    .lay-carousel-slide:nth-child(2){
    background-color: #f4b43f;
    }

    But if I give a class to an individual silder, like this it doesn't work:

    .mediadruck:nth-child(2){
    background-color: green;
    }

    Weirdly if I set the "nth-child" to 1 the whole element including the captations on the bottom turn green.

    Any ideas what my problem might be?

    Thank you!

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

      Dear @yannickzs

      can you post a link to your website?

      Then we will have a look.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yannickzs
        wrote on last edited by
        #3

        Hey @mariusjopen,

        it's not finished yet, but here is a link:
        http://yannickzurstrassen.com/
        I hope you can help.

        Thanks!

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

          Dear @yannickzs
          I can see that you made it work, right?

          .lay-carousel-slide:nth-child(4) {
              background-color: #f4b43f;
          }
          

          Best!

          Marius

          www.mariusjopen.world

          Y 1 Reply Last reply
          0
          • mariusjopenM mariusjopen

            Dear @yannickzs
            I can see that you made it work, right?

            .lay-carousel-slide:nth-child(4) {
                background-color: #f4b43f;
            }
            

            Best!

            Marius

            Y Offline
            Y Offline
            yannickzs
            wrote on last edited by
            #5

            Hey @mariusjopen I had that before, but I wanted to have a different background colour for different carousels. But when I give them a class or id it doesn’t seem to work. The overall colour works but it doesn’t show the individual colours.

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

              Dear @yannickzs
              I just tested.

              This works fine:

              .lay-carousel-slide:nth-child(1) {
                  background-color: red;
              }
              
              .lay-carousel-slide:nth-child(2) {
                  background-color: yellow;
              }
              

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • Y Offline
                Y Offline
                yannickzs
                wrote on last edited by
                #7

                Hey @mariusjopen,
                sorry... still not what I meant. I was wondering if it was possible to have different colors at different carousels, not slides. Say one carousel is project one and another carousel is project two. I want the second slider in both carousels to be colored. In carousel one green and in carousel two red. I was trying to give them a different id but it didn't work (the slider just had a white background), Is there a solution?
                Sorry if I was unclear.

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

                  Dear @yannickzs
                  ok. I get it now.

                  #car_1 .lay-carousel-slide:nth-child(2) {
                      background-color: red;
                  }
                  
                  #car_2 .lay-carousel-slide:nth-child(2) {
                      background-color: yellow;
                  }
                  

                  You could give each carousel an ID by right clicking on it in the Gridder.

                  Let me know if that works.

                  Best!

                  Marius

                  www.mariusjopen.world

                  Y 1 Reply Last reply
                  0
                  • mariusjopenM mariusjopen

                    Dear @yannickzs
                    ok. I get it now.

                    #car_1 .lay-carousel-slide:nth-child(2) {
                        background-color: red;
                    }
                    
                    #car_2 .lay-carousel-slide:nth-child(2) {
                        background-color: yellow;
                    }
                    

                    You could give each carousel an ID by right clicking on it in the Gridder.

                    Let me know if that works.

                    Best!

                    Marius

                    Y Offline
                    Y Offline
                    yannickzs
                    wrote on last edited by
                    #9

                    @mariusjopen you are the best! It worked. Thanks so much.
                    I forgot the ".lay-carousel-slide" after the id.

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

                      Dear @yannickzs
                      great! Happy to hear :-)

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