1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Show button in call to action button on hover

Discussion in 'Free Divi Community Forum' started by Brian Smith, Nov 4, 2021.

  1. Brian Smith

    Brian Smith New Member

    Hello,

    I created a carousel using slick.js with call to action modules and it works perfectly.

    I want to hide the button and show it when hover on the full call of action module and not only on the button when hovered.

    I know it's possible to hide the content using a column background image/color, but I use only one column which contains several call of action modules (working using slick.js).

    If someone has a CCS or JS code, it would be really appreciated.

    Thank you in advance for your feedback.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade mega menu design for your Divi site without using any plugins:View Demo
  2. Milos

    Milos New Member

    Can you share url? What we are looking at? Slick, which button? :D
     
  3. Brian Smith

    Brian Smith New Member

    Hello Milos,

    I cannot share the URL as I just created a private test page. My question is not related to slick.js (it was here just to explain).

    My problem is that I want to know how to change the call to action button when we move the cursor over the whole call to action module and not only on the call to action button.

    It works only if you enter two button texts : one for the normal status and one for the hover status.

    But it doesn't work with color, shape, etc...

    I think the button text is in another field or something like that.

    So I would like to know how to change this call to action button when the whole call to action module is hovered.
     
    1. PRO MEMBER PERKS Divi Powerful Child Theme - Power up your Divi sites with tons of new functionalities & premade elements:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    You may try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    And add this CSS Class for your Row Settings: dh-hide-btn
     
  5. Brian Smith

    Brian Smith New Member

    You are a king!! It works perfectly, thank you very much !!

    Now, I wanted to know how to only change the background color and add the arrow icon when the cursor hovers the entire CTA module (as it's possible to do it on the button inside the module but it works only when we hover only on the button). I don't know if I have to create a new post and you can reply here.

    Many thanks !
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try this CSS:
    Code:
    Log In or Sign Up to view this code.
     
  7. Brian Smith

    Brian Smith New Member

    You are a Master !!

    It works perfectly !! The only thing I didn't fixed is the color of the text of the button I wanted it changed on hover (on the whole CTA module).

    I tried to add "color: white!important;" in the code above but it doesn't work. This is a text-link and it's a <a> tag with two classes : et_pb_button and et_pb_promo_button.

    I added the et_pb_button in the code, but it's worst (the button does not change at all but the arrow which appears correctly).

    If you have the solution, it would be really appreciated ;)

    Thanks.
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add custom vertical navigation for your Divi site. Turns into slide in menu on mobile:Learn More
  8. Divi.Help

    Divi.Help Administrator
    Staff Member

  9. Brian Smith

    Brian Smith New Member

    It doesn't work. It does not change the text color when the whole CTA module is hovered.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  10. Divi.Help

    Divi.Help Administrator
    Staff Member

    Kindly share your URL.
     
  11. sophiejoliver

    sophiejoliver New Member

    Was this ever solved? I am having the same issue, I can't get the button text to change color on hover of the whole CTA module
     
    1. PRO MEMBER PERKS Divi Powerful Child Theme - Power up your Divi sites with tons of new functionalities & premade elements:Learn More