Last active
March 30, 2018 16:44
-
-
Save danmaby/908eee3dd48ee96849e047d2230e5687 to your computer and use it in GitHub Desktop.
Remove "Archives:" from WP Astra Advanced Header Add-on
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Filter out "archive" from archive page title | |
function wpldn_remove_archive_text( $value, $original_value, $params ) { | |
$value = str_replace( $params->'Archives: ', ' ', $value ); | |
return $value; | |
} | |
add_filter( 'ast-advanced-headers-title', 'wpldn_remove_archive_text', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment