• Resolved Rhinebow

    (@rhinebow)


    I want the description of categories and sub categories to be shown only on the category pages, but of course not in the menu. I have only added one for demonstration: Menu Kategorien ->Reis ->Jasminreis. The more sub categories I add, the longer the whole thing will be and the less useful. Of course I can delete the descriptions from the categories, but then they will also not be shown on the category pages (i.e. https://lgasiashop.de/produkt-kategorie/reis/jasminreis/).

    Any solution? B.t.w., I am using the plugin Max Mega Menu, but I believe it’s rather related to the theme.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @rhinebow, thank you for reaching out.

    Storefront doesn’t show categories’ descriptions on menus. I have checked your site, and this is generated by your mega menu plugin.

    You can hide the descriptions with some custom CSS code.
    Please navigate to Appearance → Customize → Additional CSS and add the following piece of code:

    /* Hide categories descriptions from top menu | wordpress.org/support/?p=15920387 */
    .mega-menu span.mega-menu-description {display: none !important}

    Regards

    Thread Starter Rhinebow

    (@rhinebow)

    Thank you very much. Ok, I wasn’t aware that the plugin causes that. Your code is not working. Still the same issue. When I have a little time, I will look closer into the settings of the plugin and ask for support there.

    Hi @rhinebow

    I have tested the code on a few different browsers, and it is removing the category description from the menu on my end:

    Screenshot-from-2022-08-17-08-05-54.png

    If you’re still seeing the description, please try clearing your browser’s cache, and flushing any active caching on your site.

    Regards

    Thread Starter Rhinebow

    (@rhinebow)

    Hi @hegenberg

    thank you! I had cleared the browser cache and meanwhile tried two different alternative browsers. Not aware of using any caching plugin, if that’s what you mean. And still no change, in any browser, neither desktop, nor mobile, using two different internet connections. The screenshot you made looks good, though, that’s what I want….

    Hi @rhinebow

    I have checked your page’s source code, and found an issue with your custom CSS. Please navigate to the Additional CSS editor and remove the following piece of code:

    .col-full{

    This line is not a proper full CSS rule and will break whatever code comes next.

    Best

    Thread Starter Rhinebow

    (@rhinebow)

    Hi @hegenberg

    that was the right aproach. It still didn’t work, though. Only when I removed all additional CSS, it did. Trying to figure out now what all that code was good for, since I don’t see big differences…

    Anyways, thanks a lot, we can close this now.

    Hi @rhinebow,

    Thanks for getting back and letting us know that it’s working after you removed the additional CSS.

    I’ll mark this thread as resolved now.

    If you have any further questions, I recommend creating a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide description of (sub) categories in menu’ is closed to new replies.