• Resolved fantasy_5

    (@fantasy_5)


    Hi!

    I have been trying to figure out how to create custom background image for 404 error page without using a plug in. I have checked out several tutorials, but haven’t been lucky enough to find one that will help me achieve this or do additional styling without the help of a plugin. Any ideas? Here is what my current 404 page looks like.

Viewing 3 replies - 1 through 3 (of 3 total)
  • InterServer

    (@interservernet-web-hosting)

    You need to edit 404.php file to modify 404 error page. The file usually lies inside the directory of your theme.

    You can refer the following WordPress documentation to modify 404.php.

    https://codex.wordpress.org/Creating_an_Error_404_Page

    Thread Starter fantasy_5

    (@fantasy_5)

    Hi, InterServer!

    I am somewhat aware of the basics of editing the 404 page, but am not sure how to add an image as the background for that page only. I have seen some cool 404 pages and most were customized using a plugin, but I do not wish to go that route. Do you have any idea what the code would be to add a background image like one of these pages?

    Thread Starter fantasy_5

    (@fantasy_5)

    This tag would be used to create a custom background image.

    <img class=”aligncenter size-cover wp-image-7938″ src=”insert-your-image-link-here” alt=”custom-404-background-image”/>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘create custom background image for 404 error page’ is closed to new replies.