Jump to content
Sign in to follow this  
unconsultancy

Custom 404 Page

Recommended Posts

unconsultancy

I read this answer re custom 404 pages at http://www.pagelines.com/forum/discussion/13339/whitehouse-pro-404-page/p1 (Whitehouse Theme) I have created a custom 404 page : http://www.unconsultancy.com/404-page/ But I couldn't find a 404.php file - can someone advise where and how to amend it. And / or I have misunderstood how to modify the 404 template (when creating the new page, the 404 template was not an option in the "Template" dropdown (Default, Banner, Box etc but not 404) Thanks

Share this post


Link to post
Share on other sites
Kate
There's some information in this post: http://www.pagelines.com/forum/discussion/5592/customize-404-page-in-platformpro/p1

Share this post


Link to post
Share on other sites
unconsultancy
Thanks but that post is from what I can see a long series of suggestions that didn't really work. I think I just need to either: 1. Edit the default 404 code to place the image I want in it or 2. Locate 404.php and add the code as suggested at http://www.pagelines.com/forum/discussion/13339/whitehouse-pro-404-page/p1 (Whitehouse Theme) . But where is 404.php?

Share this post


Link to post
Share on other sites
unconsultancy
OK - no longer required as I have decided to install a plugin which redirects all not found urls to the homepage in order to not lose SEO advantage from moved pages etc,

Share this post


Link to post
Share on other sites
Simon
Assuming you have platformbase installed: Create a new file called sections.noposts.php in platformbase/sections and copy this: http://pastie.org/2644276 Open platformbase/functions.php add add the following into the section register area: [code] pagelines_register_section('PageLinesNoPosts2','noposts', null, array('child' => true) ); [/code] When you go to platform templates tab now, and select 404 page you will see two no posts sections, slide the new one over so it is activated. You cant disable the main one so we have to hide it with css on the 404 pages: [code] #noposts { display:none; } [/code] The new noposts section has a css id of #noposts2 You can now edit the html in your new section.noposts.php... this is the part to change: [code]


[/code]

Share this post


Link to post
Share on other sites
unconsultancy
Thankyou - that looks like a very thorough answer.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×