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

Solved Categories pages are dropping CSS styling

Discussion in 'Free Divi Community Forum' started by Grant Senior, Jan 17, 2024.

  1. Grant Senior

    Grant Senior Member

    I've customized the menu on this site so that the menu is fullscreen dropdown when activated by the mobile menu trigger element, the Hamburger, and the Hamburger icon has been replaced by the text 'MENU' with CSS in the Theme OPtions Custom CSS. It's also customized so that the mobile menu trigger element is on for desktop. You can see it here, it works fine Products New - Vacuum & blowing solutions | VABS Ltd (thewebsiteguardians.dev).

    The problem is that the categories pages, which have their own template but are using a duplicate of the header template element, for some reason the CSS is not working. The mobile trigger element customization is not working; it's calling the original font 'ETmodules' when it it should be using 'CommutersSans-ExtraBold'. There doesn't appear to be any reason that I understand, it's using the same 'everything' as the pages that are working.
    Here's an example of it not working, Edwards Vacuum Archives - Vacuum & blowing solutions | VABS Ltd (thewebsiteguardians.dev)

    It should be using these styles:
    1. font-family: 'CommutersSans-ExtraBold',Helvetica,Arial,Lucida,sans-serif!important;
    2. content: "MENU" !important;

    There's a similar issue with the CART icon, though I suspect if I can solve the MENU problem I'll know what's going on with the Cart item.

    Do the category pages require any special attention when adjusting the CSS for them?

    Grant
     
    #1 Grant Senior, Jan 17, 2024
    Last edited: Jan 17, 2024
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Sometimes in CPT pages, Divi somehow uses high priority CSS, which causes issue.

    For the CART, try to add !important CSS tag to it.

    As for the menu, you will need to try custom CSS below:

    Code:
    Log In or Sign Up to view this code.
     
    Grant Senior likes this.
  3. Grant Senior

    Grant Senior Member


    Great! Thank you, that's sorted the issue for the MENU item. And based on what you've shown me I could sort out the broken styling for the Cart's replaced icon as well!
     
    1. PRO MEMBER PERKS Divi Cart Count Plugin - Easily add cart count to your Divi cart icon. 6 different styles to choose from:Learn More