Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225422
    hr
    Participant

    Trying to remove this and have looked through all the theme template files. Would like to remove the image behind it, too.

    #225472
    Skandha
    Participant

    @hr: To remove the text Category: text you will need to create a child theme and do a little bit of customization. Let me know if you are familiar with child theme customization so that I can help you out.

    To remove the image behind it
    Go to => Appearance => Customize => Header Media => Enable On and Select where you want to enable the Header Media.

    Kind Regards,
    Skandha

    #225691
    hr
    Participant

    Hi – Thank you. I was able to fix the header media issue. I don’t know about child themes without re-doing the whole site?

    #225757
    Skandha
    Participant

    @hr: Hello there,
    I will guide how you can remove the text category using a child theme.
    Firstly you will need to create a child theme. You can use our plugin Generate Child Theme to create a child theme. Install and Activate the plugin.
    Now,
    Go to => Dashboard => Generate Child Theme => Select Parent Theme as Izabel, fill the remaining fields and Click Generate. This will create and activate the child theme.

    Finally,
    Go to => Child Theme Folder => functions.php and add the following Code.

    add_filter( 'get_the_archive_title', function ($title) {
    
    if ( is_category() ) {
    
        $title = single_cat_title( '', false );
    
    } elseif ( is_tag() ) {
    
      	$title = single_tag_title( '', false );
    }
    
    return $title;
    
    });

    Let me know if this works out!
    Kind Regards,
    Skandha

    #226441
    hr
    Participant

    Thanks, but installing the child theme removed all the customizations I’d made on the Izabel theme (and the code didn’t work, if I did that bit correctly).

    #226445
    Skandha
    Participant

    @hr: Hello there,
    You can migrate your customizer settings from your parent theme to the child theme by using our Catch Import Export plugin. For instructions follow think link and click on the Instructions tab.

    There was a little bug with the code I provided you above.
    Please Go to => Child Theme Folder => functions.php and add the following Code.

    add_filter( 'get_the_archive_title', function ($title) {
    
    if ( is_category() ) {
    
        $title = single_cat_title( '', false );
    
    } elseif ( is_tag() ) {
    
      	$title = single_tag_title( '', false );
    }
    
    return $title;
    
    });

    Let me know if this works out!
    Kind Regards,
    Skandha

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to remove the "Category:" from the archive pages header’ is closed to new replies.