From fff122219ad6eeecf823e3781c55e8f90f9e9086 Mon Sep 17 00:00:00 2001 From: Jade Sperrin Date: Wed, 3 Oct 2018 16:25:49 +0100 Subject: [PATCH 1/3] Remove appended words from category, archive, tag and author page titles --- .../functions/wordpress/wordpress-custom.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CleanBuild/functions/wordpress/wordpress-custom.php b/CleanBuild/functions/wordpress/wordpress-custom.php index 9dcc040..b652bfb 100644 --- a/CleanBuild/functions/wordpress/wordpress-custom.php +++ b/CleanBuild/functions/wordpress/wordpress-custom.php @@ -62,6 +62,21 @@ function post_link_attributes($output) { // CUSTOM IMAGE SIZES add_image_size( 'small-on-page', 150, 60 ); +//REMOVE THE APPENDED WORDS IN FRONT OF CAT, TAG & AUTHOR TITLES +function remove_static_title( $title ) { + if ( is_category() ) { + $title = single_cat_title( '', false ); + } elseif ( is_tag() ) { + $title = single_tag_title( '', false ); + } elseif ( is_archive() ) { + $title = single_tag_title( '', false ); + } elseif ( is_author() ) { + $title = '' . get_the_author() . '' ; + } + return $title; +} +add_filter( 'get_the_archive_title', 'remove_static_title' ); + // MOVE YOAST META BOX TO THE BOTTOM function yoasttobottom() { From 55449077dc567ea48e60d212a81bde6729cb1ff1 Mon Sep 17 00:00:00 2001 From: Jade Sperrin Date: Wed, 3 Oct 2018 16:39:37 +0100 Subject: [PATCH 2/3] Enable ability to call banner_images from News Page and Custom post types --- CleanBuild/inc/footer/backstretch-script.php | 26 ++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/CleanBuild/inc/footer/backstretch-script.php b/CleanBuild/inc/footer/backstretch-script.php index 14d6f80..64d9f01 100644 --- a/CleanBuild/inc/footer/backstretch-script.php +++ b/CleanBuild/inc/footer/backstretch-script.php @@ -1,4 +1,26 @@