fixing broken space rooting
This commit is contained in:
parent
791d60ccf3
commit
022a732a93
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once(__DIR__ . '/includes/errorlog.php');
|
require_once(__DIR__ . '/includes/errorlog.php');
|
||||||
require_once(__DIR__ . '/includes/rooting.php');
|
|
||||||
require_once(__DIR__ . '/includes/init.php');
|
require_once(__DIR__ . '/includes/init.php');
|
||||||
require_once(__DIR__ . '/includes/post_types.php');
|
require_once(__DIR__ . '/includes/post_types.php');
|
||||||
require_once(__DIR__ . '/includes/post-brochures.php');
|
require_once(__DIR__ . '/includes/post-brochures.php');
|
||||||
|
|
@ -15,3 +14,4 @@ require_once(__DIR__ . '/includes/templates.php');
|
||||||
require_once(__DIR__ . '/includes/api.php');
|
require_once(__DIR__ . '/includes/api.php');
|
||||||
require_once(__DIR__ . '/includes/wysiwyg.php');
|
require_once(__DIR__ . '/includes/wysiwyg.php');
|
||||||
require_once(__DIR__ . '/includes/search.php');
|
require_once(__DIR__ . '/includes/search.php');
|
||||||
|
require_once(__DIR__ . '/includes/rooting.php');
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
// CUSTOM 404 PAGE TITLE
|
||||||
function theme_slug_filter_wp_title($title)
|
function theme_slug_filter_wp_title($title)
|
||||||
{
|
{
|
||||||
if (is_404()) {
|
if (is_404()) {
|
||||||
$title = __("Page not found - Homegrade", "homegrade-theme__texte-fonctionnel");
|
$title = __("Page not found - Homegrade", "homegrade-theme__texte-fonctionnel");
|
||||||
}
|
}
|
||||||
// You can do other filtering here, or
|
|
||||||
// just return $title
|
if ($title) {
|
||||||
return $title;
|
return $title;
|
||||||
}
|
}
|
||||||
// Hook into wp_title filter hook
|
}
|
||||||
add_filter('wp_title', 'theme_slug_filter_wp_title');
|
add_filter('wp_title', 'theme_slug_filter_wp_title');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user