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 CSS Not showing

Discussion in 'Free Divi Community Forum' started by Jakubinos, Feb 18, 2025.

  1. Jakubinos

    Jakubinos New Member

    Hello, I am facing this kind of problem where if I switch to visual builder on my Header menu and I add custom css for the logo to show up next to a menu link I actually cannot see it when I turn it off. It has nothing to do with cache and I am really hopeless with this one. If anyone could help it would mean alot.

    Here are photos and the code:

    With visual builder on:
    upload_2025-2-18_20-16-4.png




    Without visual builder on:
    upload_2025-2-18_20-15-35.png

    Here is the code:


    #menu-item-20231 a::after {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('http://www.rsnetopyr.cz/wp-content/uploads/2024/08/cropped-netopyr-site-icon.png'); /* Vaše logo */
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 10px;
    vertical-align: middle;
    }
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add more varieties for your Divi header (12 premade styles) + menu hover effects:Learn More
  2. Divi Booster

    Divi Booster Divi Expert

    On the front-end the link has "menu-item-20231" as a class instead of an ID, so you'd need to use this instead:

    Code:
    Log In or Sign Up to view this code.
    (Note the "." rather than "#" at the start).

    I'm not sure why the discrepancy between the visual builder and front-end, but hopefully that fixes it for you.
     
    Jakubinos likes this.