Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #951012

    Hello,

    On my site, I’d like to change the link color of the button (Layerslider WP). I’ve managed to change the background color and the border but not the text.
    I’ve tried several CSS, even adding a specific span.
    Could u help me please ? (credentials below – slider button in first element of my homepage)
    Tx guys !!!

    #951595

    Hey newki75,

    What is the code you’re using? The span with text is outside of the link.
    Image 2018-05-04 at 18.37.40.png

    Best regards,
    Victoria

    #951630

    I’ve removed everything, but I’ve tried this method : https://kriesi.at/support/topic/change-colour-on-hover-in-layer-slider-buttons/

    Tx for your help

    #951791

    I become crazy, I’ve tried so many things… Can anybody help?
    Tx guys

    #952050

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    a.ls-layer-link:hover {
      background-color:green !important;
    }

    Best regards,
    Rikard

    #952568

    Hey Rikard,
    It’s OK for the background, but my text in the button is still white in hover (so not visible), even if I’ve added

    a.ls-layer-link:hover {
      color:#432b1f !important;
    }

    What can I do to change the text color while hover?
    Tx and have a nice day
    Marine

    #953122

    Hi Marine,

    You need to have the hover not on the link but on the button, on the layer parent div element, then you will be able to control the text color on hover.
    Image 2018-05-08 at 12.21.35.png

    The text is not inside the link that you’re trying to address.

    Best regards,
    Victoria

    #953257

    Ok Victoria but could you tell me which CSS I should add please, I don’t manage to do it by myself.
    I’ve tried to add the class btn-slider with a span to my layer text. I manage to change to text color by default but not the hover one.

    .btn-slider {
    color: #432b1f !important;
    }

    Could you help me please?
    Txxxxx

    #953989

    Hi Marine,

    The way I see it here, the css will not do it here, it needs to be JavaScript.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #961472

    I did it.
    It works for me.

    #layerslider_2 > div.ls-inner > div > div:nth-child(3):hover{background-color: #e94446 !important;}

    #layerslider_2 > div.ls-inner > div > div:nth-child(3) > span{color: #fff !important;}

    #961629

    Hi,

    Thank you for sharing your solution.


    @newki75
    I see the button background and the text color both change on hover to a light background and dark text.

    Please clarify if you need any further help or we can close this ticket :)

    Best regards,
    Vinay

    #961684

    It’s OK for me now, you can close the issue sorry :-)
    Tx guys !

    #962704

    Hi newki75,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.