• Any page that I have that has posts (like ‘Writing’, or ‘Films’) displays the ‘category’ prefix….like the one shown in the link above. For pages that don’t have posts on it (like the Photography page), it doesn’t show that category prefix.

    Is there a way to not show that category prefix at all for all pages, regardless of whether they have posts or not?

    Thanks.

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

Viewing 1 replies (of 1 total)
  • Hi,

    Your “Films” page, is actually an “Archive Page”; it was made when you created the category “Films”. Every time you create a tag or a category, a new archive page with the prefix (tag or category) will be created as well.

    Your “Photography” page, is simply a page; like a post.

    To learn more about this, check out the WordPress Hierarchy.

    If you’d like to remove the prefix, you can use a function with the hook get_the_archive_title_prefix(); but you’d need knowledge on PHP and I believe you are new at this.

    With this theme, you cannot hide the prefix with CSS; but with the Twenty Twenty theme, for instance, you can. So you may want to switch themes, or create a child theme for your Twenty Twenty One Theme and add the function I mentioned.

    I hope this helps!

    Cheers

Viewing 1 replies (of 1 total)
  • The topic ‘How to not display category prefix on page’ is closed to new replies.