• Hey there,

    I really want to just have the Heading of the my blog page to be ‘Listen’. Currently it says ‘Category: Listen’.

    I’ve looked at several support forums on ways of doing this by editing the functions.php file in the child theme, but nothing has worked.

    Is there an easier way to do this in the Go theme, or some other way I can remove ‘category’ from the top of the page?

    Thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,
    I don’t know exactly where is that ‘Category: Listen’ in your website. Going back to my website, what I can tell you is that I didn’t like categories showing up in my posts meta so I hid them using CSS.

    .post__meta .post-categories {
    	display:none;
    }

    Hey @thesecondestate,

    Thanks for reaching out! ??

    I have checked your site https://www.thesecondestatepodcast.com and, as I can see, the mentioned issue doesn’t exist on page https://www.thesecondestatepodcast.com/listen.

    Though, the issue does exist on the following page:
    https://www.thesecondestatepodcast.com/episodes

    Please see.

    As you can see from the screenshot above, the “Category:” text is still displayed. In order to remove it from your site, please add the following code at the very bottom of your child theme’s functions.php 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' );

    I have tested the code and it works on my end, please take a look:
    Before
    After

    If you’re not using a child theme, you can create one or add the above PHP code using this plugin.

    Please do not add the code directly to the parent’s functions.php file as it will be automatically removed once you update the theme.

    Let me know if the code helps.

    Have a nice one!
    Milos | GoDaddy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t remove ‘Category’ from blog page’ is closed to new replies.