• Hi,

    I recently created my first Custom Post Type “Studien” for the Zakra Theme. For listing the posts I copied archive.php and content.php to my child-theme and renamed it archive-{studie}.php and content-{studie}.php. Then I customized the content. Everything worked fine except for the title, which is just “Archive”.
    I tried some plugins (Custom Archive Titles, Archive Title, Archive Control), but they couldn’t fix the problem.
    The browser tab shows “Studien Archiv – (domain)”.
    For both I would like to have only the CPT name (Studien) to be displayed.

    Thank you!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter purissimo

    (@purissimo)

    I’d like to add some details that may be helpful:

    • My Zakra version is 1.4.2
    • The output of <h1><?php post_type_archive_title(); ?></h1> in archive-{studie}.php is “Studien” as it is supposed to be
    • Whatever I write into the <header class=”page-header”> of the archive-{studie}.php is displayed in the content area under the page header. The title of the page header always remains “Archive”

    Hi @purissimo,
    I need to check your site to properly understand it. I think the problem is you get Archive text in the page title in the CPT archive page, right? If so, you need to override zakra_entry_title() function. If you need help with that, please contact us via https://zakratheme.com/ Chat Support.

    Thanks.

    Thread Starter purissimo

    (@purissimo)

    Hi Ashish,
    this is exactly the problem. I found the zakra_entry_title() function in inc > template-functions.php, but I wasn’t successful when I tried to put a copy into my child-theme’s function.php and played around with customizations. Whatever I did, the CPT archive page title remained: “Archive”.
    So I will now contact the Zakra Chat Support.

    Thanks

    Hi @purissimo
    We’ve released an update with the fix. Please check if it fixes the problem on your site as well. Let us know if there’s still problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change “Archive” title to CPT name’ is closed to new replies.