Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Carousel - Text Slide Background Color

    Addons
    3
    4
    1579
    Loading More Posts
    • 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.
    • E
      extra-vitamins last edited by

      Re: Carousel : Style Text Slides?

      Hi @arminunruh,

      I was wondering if there's a way to change the background color of text slides so that each carousel has a different text slide color. The code from the thread above seems to work if I want all the text slides to be the same color, but is there a way to target specific slides so that they can be all different colors?

      Love the theme by the way :)

      Thanks!

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        Thanks a lot extra-vitamins! :)

        So you can add an html class to any element in the gridder to target it specifically with your css. right click an element and choose "set html class and id". This way you could set different colors for different carousels.

        Now in the carousel, each slide has the html class of "lay-carousel-slide". Combined with the nth-child selector you can target your css to for example the second slide, third slide, etc https://developer.mozilla.org/en/docs/Web/CSS/:nth-child

        For example:

        .lay-carousel-slide:nth-child(2){
        background-color: green;
        }
        
        E 1 Reply Last reply Reply Quote 0
        • E
          extra-vitamins @arminunruh last edited by

          @arminunruh That worked great, thank you!!

          1 Reply Last reply Reply Quote 0
          • B
            burnbrunet last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            I don't answer or check forum DMs, please just post on the forum.

            Try this to fix issues before you post:

            Use the Search Feature. Maybe there is already a solution to your issue.

            1. Update Lay Theme and all Lay Theme Addons
            2. Disable all Plugins
            3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
            4. Now see if your problem solved itself
            5. Go here, see if your problem is listed here:
            Troubleshooting

            When you post:
            1. Post a link to where the problem is
            2. If the problem is difficult to explain, post screenshots / link to a video to explain it

            Thanks!

            Online Users

            C
            L
            A
            M
            E

            Recent Topics

            • T

              thumbnail grid categories fixed.

            • L

              BLEND MODE ON MOBILE

            • A

              A modal/pop up window displaying extra info

            • Carousel is not showing

            laytheme.com