1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, 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

Solved Why does it not apply the custom CSS?

Discussion in 'Free Divi Community Forum' started by Nickk, May 25, 2020.

  1. Nickk

    Nickk New Member

    I have a custom code module to which I would like to apply custom CSS.
    When I add the custom CSS to the website's "Additional CSS" it all works perfectly.

    But when I add the custom CSS to the Divi module it does not work. All custom CSS is struck through:

    upload_2020-5-25_13-45-5.png

    upload_2020-5-25_13-47-40.png

    I added the custom CSS as follows:
    upload_2020-5-25_13-46-11.png

    Any idea what I'm doing wrong?
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    For any custom CSS on the CSS Class, such as .mainDiv, you should add it in WP Admin > Divi > Theme Options > Custom CSS.

    If you add it in the module settings, it already has the CSS Class defined:

    upload_2020-5-25_22-36-56.png

    So, you can only add the css body code in it. See the yellow border below:

    upload_2020-5-25_22-37-50.png
     
    Nickk likes this.