• Hi! I have taken over a website from an ex colleague for our project and have made some changes to it. It works fine except at the top of category pages, I see the text “no categories”. How can I remove this?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @durremirza
    It code may be in archive.php and if ypu have not knowledge of code just use css given in below


    <span aria-label="CSS selector" class="selector" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--text-disabled);"><span class="simple-selector selector-matches" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--text-primary);">ul.cat_menu</span></span><span class="sidebar-pane-open-brace" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--text-primary);">?{</span>
    1. <input class="enabled-button" type="checkbox" aria-label="display none !important" style="min-width: 0px; min-height: 0px; font-size: 10px; background-color: var(--sys-color-cdt-base-container); color: inherit; visibility: hidden; float: left; margin-right: 0px; vertical-align: top; position: relative; z-index: 1; width: 18px; left: -40px; top: 1px; height: 13px;"></input><span class="styles-clipboard-only" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: inline-block; width: 0px; opacity: 0; pointer-events: none; white-space: pre;"> </span><span aria-label="CSS property name: display" class="webkit-css-property" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--webkit-css-property-color,var(--sys-color-token-property-special)); margin-left: -38px;">display</span><span class="styles-name-value-separator" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: inline-block; width: 14px; text-decoration: inherit; white-space: pre;">: </span><span aria-label="CSS property value: none !important" class="value" style="box-sizing: border-box; min-width: 0px; min-height: 0px;">none !important;</span>
    <span style="background-color: rgb(255, 255, 255); color: var(--text-primary); font-family: consolas, "lucida console", "courier new", monospace; font-size: 12px; white-space: nowrap;">}</span>

    That can only be coming from your theme. But as you’re using a custom theme, we’re unable to inspect the theme’s code and help you address the root cause of the issue.

    As rohitmukati mentioned, you can use CSS to hide it. Put the following CSS code in APPEARANCE => CUSTOMIZE => ADDITIONAL CSS:

    li.cat-item-none {
        display: none;
    }

    I’m not 100% sure if hiding it this way will have any unintended consequences or not… so be sure to test your site after adding the code.

    Good luck!

    Thread Starter durremirza

    (@durremirza)

    Thank you! It worked

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My wordpress website shows “no categories” written at the top of page’ is closed to new replies.