Content Marketing

Creating a Custom 404 Page with Genesis – Tutorial

Genesis uses a very busy 404 default page. When I made the change I did not want to lose my old 404 custom page, but I also could not create a new one.

But I wanted my custom 404 page fucking. I therefore asked the Genesis team to help get there.

Get the initial code

First, in the dashboard, go to Appearance> Editor and select the basic framework of genesis (not your child theme, but the actual "Genesis") drop-down list on the top right

However, DO NOT CHANGE DIRECTLY NO GENESIS CORE FILE or they will be replaced by the next update.

 404.php "width =" 550 "height =" 342 "class =" aligncenter frame size-full wp-image-13954 "/> </p>
<h2> Added template 404. php to your child theme </h2>
<p> One you Open the Genesis structure files in the editor, choose the template 404.php and copy and paste everything written there in a NEW FILE on your computer by using your favorite text editor Save this file as 404.php, then upload it to the child theme folder you are using via FTP </p>
<h2> Edit the 404.php template in your child theme </h2>
<p> Then return to WP Dash and go to Appearance> Editor and select the child theme you are using Click on the 404.php file in the right sidebar and edit it </p>
<h2> Say whaaaaat? </h2>
<p> You do not know what to change? A default Genesis 404 displays the pages site, authors, archives, recent publications and categories. </p>
<h3> </h3>
<p><h1 class=

The above code is what spits the title at the top of the page. This is where you see "Not Found, Error 404" at the top of the 404 page by default. Change the "Not found, 404 error" in the code to anything you want to appear for the page title (mine says "Sock it to me!"):

IMPORTANT: If you are going to use an apostrophe (single quotation marks AKA) inside a PHP call (not a programmer, do not know a better word for that – or if there is even one) SAFE to add a slash in front of him. That is to say. If you want your title to say "We can not find this page", we would need:

Introductory text

<? php printf (__ (& # 39; page you are looking for no longer exists You may be able to return to the homepage of to see if you are looking for what you are looking for ., you can try to find it with the information below., # genesis #, home_url ()); ?>

The above is what generates the paragraph under the title at the top of page 404. Replace the text of the intro with what you want to change:

< ? Php printf (__ (Add the introductory text you want here and put a link to your homepage if you want. & # 39;, & # 39; 39; genesis & # 39;), home_url ()); ?>

Page Content

Next you will see a lot of code inside two div's called "archive-page". This is what makes the two columns that list the site pages, authors, archives, recent publications and categories. The top

creates the left column which lists the pages and categories:

    ]

[Not available]

The second creates the right column which lists the pages of the authors, the archives and the recent publications:

    The American Encyclopedia ]

[19459]

If you want to keep two columns below your introductory text on your 404 page, you just have to edit what is in each side

to be what you want :

Your Columns Content Here.

Your content of straight columns here.

How about changing the content of the page so that there is only one column?

If you want to get rid of the columns together, just delete the left and right

in their entirety and simply add your 404 content via a new tag

just below introductory text

.

So this:

<? Php printf (__ (& # 39; page you are looking for no longer exists You may be able to return to the home page of to see if you like it Or, you can try to find it with the information below. & # 39; genesis & # 39;), home_url ()); ?>

[194590001]

[19459]

.

[19459]

Would become:

<? Php printf (__ (The page you are looking for no longer exists, you can go back to the homepage of the site and see if you can find what you search for it with the information below. ", & # 39; genesis & # 39;), home_url ()); ?>

Optional subtitle here

Whatever you want to show after the intro

Or even simply this:

Optional subtitle here

Anything you want to show after the title as content

Cheers!





Leave a Reply

Your email address will not be published. Required fields are marked *

*
*