Forums

[Plugin: Useful 404's] Exact code to insert (4 posts)

  1. kjetilgf
    Member
    Posted 7 months ago #

    Looks nice - but to make it work:

    - What is the exact code I'll have to insert in my 404.php file? (The ReadMe says "Put the function call useful404s(); in your 404.php template file below the title.", but how to write the complete code?)

    - And - will it be correct to insert it just below the <?php get_header(); ?> code?
    Thanks,
    Kjetil

  2. Scorenalizer
    Member
    Posted 7 months ago #

    Simply yes it will be correct. the header will be not changed.. but u will be followed as 404 Not Found and your 404.php will be working...

  3. devbit
    Member
    Posted 7 months ago #

    Just add the code: <?php useful404s(); ?> into your 404.php template where you would like the output you set in the options to appear - generally somewhere under your heading tag.

  4. kjetilgf
    Member
    Posted 7 months ago #

    Thanks a lot
    devbit - that was just what I needed. A little back'n forth with placing the code in in the 404.php file, and we're up and running.
    :o)

Reply

You must log in to post.

About this Topic