tanchev Posted December 24, 2020 Share Posted December 24, 2020 Hello guys, Does anyone have any idea how I can make a new title for the route not found page? There is currently no title in the .tpl file so I have no idea from where the template file is getting the title. Thanks, Regards, 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 27, 2020 Share Posted December 27, 2020 On 24/12/2020 at 16:58, tanchev said: Does anyone have any idea how I can make a new title for the route not found page? There is currently no title in the .tpl file so I have no idea from where the template file is getting the title. if you're thinking of the "404 - Unknown Route Path" shown in the client area, then it is hardcoded (or at least used to be)... you could change the pagetitle and displaytitle values with a hook if necessary... <?php add_hook('ClientAreaPage', 1, function($vars) { if ($vars['pagetitle'] == "404 - Unknown Route Path") { return array ("pagetitle" => "New Page Title", "displayTitle" => "New Display Title"); } }); 1 Quote Link to comment Share on other sites More sharing options...
tanchev Posted December 28, 2020 Author Share Posted December 28, 2020 Hi @brian!, thanks for the hook. Regards, Happy Holidays :) 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.