DARKF3D3 Posted May 21, 2013 Share Posted May 21, 2013 How can i change the body id of the 404 page? I want to change it from 404 to pagenotfound. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted May 22, 2013 Author Share Posted May 22, 2013 No one know how to do this? Link to comment Share on other sites More sharing options...
fjesteban Posted September 14, 2013 Share Posted September 14, 2013 Hi, In your theme header.tpl: <body {if $page_name eq '404'}id="pagenotfound"{elseif $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> Link to comment Share on other sites More sharing options...
PascalVG Posted September 14, 2013 Share Posted September 14, 2013 Hi fjesteban, I think DARKF3D3 just wants to change the contents of the 404 page... The files involved are: /controllers/front/PageNotFoundController.php /themes/<your theme folder>/404.tpl and an image: /themes/<your theme folder>/img/bg_404.png (the shopping bag with 404 on it) (N.B. there is one other file, the /shop-root folder/404.php file. This file is not used anymore (i.e. deprecated). The controller took it's place.) Hope this helps, pascal. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now