• Hello, I have been trying to hide categories description from main menu, I have tried using a few basic custom css codes mentioned in forum help articles and I even removed the categories description. Still the description is visible in categories section and I have no idea where it is coming from.

    I am using the OceanWP theme and litespeed cache for cache services.

    Quick help is appreciated. Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    The site you linked to does not appear to have a DNS record. We need a link to a functioning page in order to make reasonable CSS suggestions.

    Thread Starter devorgray

    (@devorgray)

    Hi, sorry about the mistype, the actual page i need help with is https://www.devorgray.com

    Moderator bcworkz

    (@bcworkz)

    Adding this to the customizer’s Additional CSS section should hide the descriptions:

    span.nav-content {
        display: none !important;
    }

    The key factor here is this CSS must appear on the page after the CSS it’s trying to override. You may need to flush any and all caches involved (both server and client side) for this code to have an effect.

    Ideally you’d prevent the descriptions from being output to start with instead of merely hiding from view. If the descriptions are not visible in the menu editor, your theme or a plugin is likely injecting it into the menu HTML as it’s being output. Identify which module it is by selectively switching themes and deactivating plugins until they go away. You can then ask in that module’s dedicated support forum how to prevent the descriptions from being in the menu.

    Thread Starter devorgray

    (@devorgray)

    Thank you @bcworkz , this immediately solved the issue for me. I’ll do the ideal fix soon. really appreciate the quick solution. Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to hide description from categories in main menu’ is closed to new replies.