Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #249785
    roelandkh
    Participant

    A archive page is given the title: “Category: <category-title>” or “Tag: <tag-title>”.
    In my case I would prefer simply “<category-title>” or “<tag-title>”
    I found two options:

    * in the translation, but in catchkathmandu.pot I couldn’t find the phrase: Category: %s nor Tag: %s; I did find it in the language files in Wp-content/languages, and that worked – till the translation of WordPress (not of the theme) was updated. I tried to place the nl_NL.po in the childtheme/languages, but that made no difference. Then I succeeded in adding both phrases to the catchkathmandu.pot and exported it as catchkathmanduchild.po/mo but it didn’t work. Or maybe these files were not in the right location. Where should they be placed?

    * another thing I tried was to copy from the general-template.php the function get_the_archive_title() into a general-template.php and skipped the words “Tag: ” and “Category : “, placing the file in the childtheme. But that wasn’t working. Or should I place the general-template.php in a different folder in stead of in the childthemes root-folder?

    Who knows the way to reach my goal?

    Thanks for reading and thinking.
    Roeland KH

    #249820
    Skandha
    Participant

    @roelandkh: Hello Roeland,
    To remove the Category: and Tag: text you can use our plugin Hide Archive Label.

    Let me know if this solves your issue.
    Kind Regards,
    Skandha

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Tag: or Category: in Archive-title’ is closed to new replies.