• Resolved florlola

    (@florlola)


    I want to set a few categories as the url for my main menu because I like that layout better.
    I removed the “category” from the url with a plugging, but now I need to remove the word from the page’s title. or at least change it, since it wouldn’t be a category bur rather a section… is there a way to do this??

Viewing 6 replies - 1 through 6 (of 6 total)
  • You’ll need to have a child theme in order to do this. Do you have/are you willing to make one?

    Thread Starter florlola

    (@florlola)

    I have one ??
    I just can’t figure out where that little line I need to remove is

    Removing that line won’t help cause it will also remove the category title. Add this in your child theme’s functions.php file:

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

    Thread Starter florlola

    (@florlola)

    Awesome!! thank you so much!!

    loving the theme, by the way

    Cool. Feel free to mark this topic as resolved. Reviews are also appreciated ??

    Thread Starter florlola

    (@florlola)

    Will do!
    Thanks for the fast reply, really appreciate it

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove the word "category" orm page title’ is closed to new replies.