Skip to content

Commit

Permalink
added fix for wrong 404 page title
Browse files Browse the repository at this point in the history
  • Loading branch information
h0p3zZ committed May 18, 2023
1 parent ea35ac6 commit 48be7ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/* Change 404 page title text */
function filter_wp_title($title)
{
if (is_404()) {
$title = 'Seite nicht gefunden';
}
return $title;
}
add_filter('pre_get_document_title', 'filter_wp_title', 10);
?>

0 comments on commit 48be7ad

Please sign in to comment.