Jump to content
revoltoid

How do I create a custom 404 page?

Recommended Posts

revoltoid    1
revoltoid

Hello, The way I have tried it was creating a simple page, named it 404-page and tried to select the 404 error template from the page attributes template drop down. I noticed that it is not there, so I can't select it. I guess even if I could that would only be the template for the page and wouldn't actually tell wordpress or the framework that they should use that for 404 not found page. So, how do I create a custom 404 page? Thanks.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Go to Dashboard > PageLines > Templates > and click "Page Templates". Then, click 404 Error. Simply drag the elements you wish to add into that template. You may also do the same thing in the Content Area, depending on your preferences.

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
revoltoid    1
revoltoid

Thanks. I currently added 'Content' to the template. How do I add my actual text as a content?

Share this post


Link to post
Share on other sites
Rob    547
Rob

If you've added Content Box to the 404 Error template, now go to Dashboard > PageLines > Meta > 404 Error > Content Box. There you may add content manually to the content box. It's rather like a text widget. However, be sure to add your 404 too, because that may not be there by default anymore. Make sure to check it.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
revoltoid    1
revoltoid

Thanks rangelone, I replaced the Content (which I had there) with the Content Box (which you suggested) and did the meta settings as well and now I can see the text on the 404 page. I think I can manage from here, thank you. Although I wonder how is section 'Content' available for the 404 template but is not for the 404 Meta settings....what do I do with that one if I add it to the 404 template? (for example I would prefer having Content to having Content Box, as then I wouldn't have to customize that, it would inherit the site's style, but now I have to customize the Content Box, which is great and necessary if I want it to be different from other pages, but is extra work if I want the 404 page to look like any other page.

Share this post


Link to post
Share on other sites
Simon    247
Simon

You can add any section you like to the 404 page template area, and then adjust the settings under the 404 special settings area.

Share this post


Link to post
Share on other sites
revoltoid    1
revoltoid

Hi Simon, Where is the '404 special settings area' ? :) Do you mean the Meta settings at Dashboard/Pagelines/Meta/404 Page ? My question was; how do I add content/text to the 'Content' section which I include on the Dashboard/Templates/Page Templates/404 error/Active sections ?

Share this post


Link to post
Share on other sites
Simon    247
Simon

Use the contentbox section, its kind of like a text widget. There is no 404 page editable area as it is not a real page/post.

Share this post


Link to post
Share on other sites
revoltoid    1
revoltoid

thanks Simon, I will use the Content Box. how about a Search field? How do I include that on my custom 404 page? there was one on the default 404, but canr see the way how to include it for the custom 404.

Share this post


Link to post
Share on other sites
catrina    103
catrina

The search field is usually added using PHP in the WordPress template code, but I'm not certain if Content Box will accept this kind of code. Since Content Box should accept shortcodes, I would recommend finding a plugin that would allow you to add a search bar using a shortcode: http://wordpress.org/extend/plugins/


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
revoltoid    1
revoltoid

Thanks Catrina, are you sure I need a plugin? By default the search field is included on the 404 page. just because I create a custom one I should not need a plugin, should I? (it does not have to be in/on the Content Box, there is plenty space there for any other section/short code/ etc.

Share this post


Link to post
Share on other sites
Rob    547
Rob

On your 404 template, add a unique sidebar you've not used elsewhere like Universal, Full Width or Tertiary. Then, in Dashboard > Appearance > Widgets just add the Search field to that sidebar. Your 404 will then include the search field without coding.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
revoltoid    1
revoltoid

thanks rangelone, I think that sort of solves it (until I need that sidebar for something else :D)

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx

I am having some issues with these instructions:

If you've added Content Box to the 404 Error template, now go to Dashboard > PageLines > Meta > 404 Error > Content Box. There you may add content manually to the content box. It's rather like a text widget. However, be sure to add your 404 too, because that may not be there by default anymore. Make sure to check it.

. I do not see the "Meta" option: http://cl.ly/image/1W3r2f1m1T1K - so I have no way to change the content on my 404 Error page after having added a Content Box.

Share this post


Link to post
Share on other sites
Rob    547
Rob

The Content Box, once added, is found in Dashboard > Appearance > Widgets like a typical sidebar. Add the widgets you like to it.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Simon    247
Simon

Rob contentbox is not a sidebar ;)

WebWerx Your looking at the dashboard there, click on the left where is says 'page options' and you will see the 404 template area options. Also update those addons!!!

  • Like 1

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx

I am also wondering what I do in order to customize the page for adding a search box (for example). I'd normally do that with a hook... But am pondering how to do it with the above method.. :huh:

Thanks for the nudge Simon.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Sorry, I meant the Content Sidebar.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
charrabennett    0
charrabennett

Simon, any and all changes to;

Page Options >> 404 Page >> adding any content simply will not save.

 

I'm adding text and shortcode to the box that says;

Content Box Content
Add content for the box

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Charra

 

If you're experiencing issues with meta not saving on the 404 page as you seeing it on other pages too? Sometimes plugins can conflict and affect the admin area/drag and drop/settings being saved. Try deactivating any active plugins to see if the settings will then save.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
charrabennett    0
charrabennett

Ok I deactivated everything, including pagelines, then reactivated pagelines, still will not save the text I put into that content area.

Share this post


Link to post
Share on other sites
charrabennett    0
charrabennett

Sorry, absolutely no text will save.

Share this post


Link to post
Share on other sites
Simon    247
Simon

What happens when you save?

Share this post


Link to post
Share on other sites
charrabennett    0
charrabennett

here are screenshots This is the first part where I choose the settings of the 404 page

404Setup.jpg

 

 

 Then this is what it looks like after I click save.

 

 4041.jpg

 

On the Content box I did this

4043.jpg

 

When I saved it I got this

 

4044.jpg

 

 

There should be an option to put in a sitemap on a 404 like www.mainlinerealestators.com/wassssssup

 

Thanks everyone for your input.

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


×