handling 404 title internationalization
This commit is contained in:
parent
1dc17263e4
commit
de9ed06c5e
|
|
@ -1,5 +1,19 @@
|
|||
|
||||
<?php
|
||||
|
||||
function theme_slug_filter_wp_title($title)
|
||||
{
|
||||
if (is_404()) {
|
||||
$title = __("Page not found - Homegrade", "homegrade-theme__texte-fonctionnel");
|
||||
}
|
||||
// You can do other filtering here, or
|
||||
// just return $title
|
||||
return $title;
|
||||
}
|
||||
// Hook into wp_title filter hook
|
||||
add_filter('wp_title', 'theme_slug_filter_wp_title');
|
||||
|
||||
|
||||
add_action('template_redirect', 'redirect_to_demo_components_page');
|
||||
function redirect_to_demo_components_page()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user