Forums

Adding custom 404 to theme and implementing the stylesheet (3 posts)

  1. posiesplace
    Member
    Posted 5 years ago #

    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 http://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

  2. Joannie
    Member
    Posted 5 years ago #

    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 :)

  3. posiesplace
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic