• Can anyone please give me some pointers as I’m not acomplished with stylesheets at all.

    I have created a custom 404 in my template but wish to add it to the stylesheet so it appears as the rest of my site but I’m not quite sure what I’m doing here. Can someone please give me some advice.

    My site is https://www.posiesplace.net

    The new 404 which I’ve created does work but as you’ll see due to the default font it’s pretty unreadable.

    Many thanks
    Pamela

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello Pamela

    You need to include the link to the stylesheet in the header of your 404 page (by which I mean the bit between the <head> tags, not necessarily the header.php file).

    The link will look something like this:

    <link rel=”stylesheet” href=”/wp-content/themes/yourtheme/style.css” type=”text/css”>

    Hope that helps

    Jo

    PS. Love your template ??

    Thread Starter posiesplace

    (@posiesplace)

    Thanks Jo!

    The link to the stylesheet seems to be in place but the items in the 404 are not defined in the stylesheet.

    As far as I can tell my problem lies in the fact that there is no h2 or p relating to the 404 defined in the stylesheet.

    How and where do I define them?

    I would be happy just to set the h2 and p font to white just so the message is readable.

    Cheers
    Pamela

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding custom 404 to theme and implementing the stylesheet’ is closed to new replies.