• I have tried various code to remove the category title and image displayed just under the menu with no luck.

    Can someone with knowledge give me the code or plugin to be able to do this. It really bugging me and I have spent days on if not weeks on this.

    Click the link above and you will see a grey rectangular box with category: boys clothes. I want the title and the box removed.

    Thanks you,

    Abu Sultaan

    • This topic was modified 4 years, 7 months ago by abusultaan.
    • This topic was modified 4 years, 7 months ago by Jan Dembowski.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    It’s easy to do that. Simply open the functions.php file in your theme and add the following code at the end of the file:

    function prefix_category_title( $title ) {
    if ( is_category() ) {
    $title = single_cat_title( ”, false );
    }
    return $title;
    }
    add_filter( ‘get_the_archive_title’, ‘prefix_category_title’ );
    Now refresh your category pages and you will see “Category: ” is gone.

    If the theme you’re using is a premium WordPress theme, you shouldn’t edit the functions.php file directly. Because you will loose all the edits when it’s updated. Instead of that, you should use a child theme to do the job. To create a child theme, please follow this guide.

    After creating the child theme, put the code above in the functions.php file. It works similarly. And you never loose the change when the theme is updated.

    try this

    .page-site-header {
     display:none;
    }
    Thread Starter abusultaan

    (@abusultaan)

    Thank you all.

    All of your suggestions resulted in failure but it’s so nice that you replied.

    If others are experiencing this issue then all you have to do is:

    Go to theme-options -> breadcrumb disable the breadcrumb

    Issue resolved!

    Thank you all again,

    Abu Sultaan

    • This reply was modified 4 years, 7 months ago by abusultaan.
    • This reply was modified 4 years, 7 months ago by abusultaan.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘how do I remove category image and title just under menu’ is closed to new replies.