• hi, in the topic higher education how can I do to eliminate the written category: from the title of a category? should I use a plugin?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @gvnn86: Hello there,
    To remove the text Category you will need to create a child theme do a little bit of customization. Let me know if you are familiar with child theme customization so that I can help you out.

    Also for swift replies please post your issues and queries on our Official Theme Support Forum https://catchthemes.com/support-forum/

    Kind Regards,
    Skandha

    Thread Starter gvnn86

    (@gvnn86)

    Thank you
    skandha, but unfortunately I have no experience in wordpress theme customizations is the first time I use it.

    Is it possible to know if there are lines of code to comment or delete? I had tried via css to set the title of transparent color but in this way it also hides the titles of the articles while I would like to remove only the word CATEGORY: from the title of the category.

    Thank you

    @gvnn86: I will be there to guide you step by step if you are willing to give it a try.

    There is a simple plugin Generate Child Theme which will generate the child theme for you.

    After that you will need to add a few lines to code the functions.php of the child theme.

    Let me know what you would like to do!
    Kind Regards,
    Skandha

    Thread Starter gvnn86

    (@gvnn86)

    yes thanks for the help. So I have to download the plugin, install it and activate it, right?

    And then what should I add in the code of the function.php file?

    Also every time I update the wordpress will these changes be lost or will they remain?

    thanks a lot

    @gvnn86: Yes you will need to Install and Activate the theme.
    Then
    Go to => Dashboard => Generate Child Theme => Select Parent Theme as Higher Education, fill in the other fields and Click on Generate.

    Now Go to => Child Theme Folder => functions.php file 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;
    
    });

    The changes wont be lost when you update WordPress or the Theme, that is the reason we have used a child theme.

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

    Thread Starter gvnn86

    (@gvnn86)

    skandha thanks a lot for all.
    Everything works, the word category: from the title is gone.
    Since in the code I had also implemented the slideshow in header having generated the child theme at each update not even that I lose right?

    @gvnn86: Yes no changes that you have made in the child theme will be lost after updates.

    I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
    https://www.ads-software.com/support/theme/higher-education/reviews/#new-post
    Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help, don’t hesitate to let me know. Have a good day! ??

    Kind Regards,
    Skandha

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘To vide category: in the title’ is closed to new replies.