From d8810ab0f9cc84ec99e6ebfa2da530bd935eccaa Mon Sep 17 00:00:00 2001 From: Leo Germani Date: Mon, 27 Aug 2018 15:42:04 -0300 Subject: [PATCH] fix page title --- src/functions.php | 3 ++- src/template-parts/loop.php | 14 +++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/functions.php b/src/functions.php index fb77c97..c64753f 100644 --- a/src/functions.php +++ b/src/functions.php @@ -197,10 +197,11 @@ function tainacan_active($selected, $current = true, $echo = true) { } -add_filter('get_the_archive_title', function() { +add_filter('get_the_archive_title', function($title) { if (is_post_type_archive('tainacan-collection')) { return __('Collections', 'tainacan-theme'); } + return $title; }); add_action('pre_get_posts', function($query) { diff --git a/src/template-parts/loop.php b/src/template-parts/loop.php index 7abfe9a..463e30a 100644 --- a/src/template-parts/loop.php +++ b/src/template-parts/loop.php @@ -4,16 +4,20 @@