• Resolved katjo15

    (@katjo15)


    Hello,

    I have created a basic custom 404 error page template and am wondering how to apply my style.css to it. You can view the error page at: http://cosmoevents.net/banana

    I think the error I am running into is the fact that I am not calling my header in my 404error page php file since the menu I am using across my theme is located in the footer. Any suggestions how to stylize the 404 error page?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter katjo15

    (@katjo15)

    Hi Esmi,

    Thank you for the quick response. I did read the page you recommended and I am still having trouble customizing the actual look. In my custom 404error php file, I do not call the header because I do not want to display those menus. Therefore, the 404 error page is being stripped of all css styling. Do you have any suggestions on how to proceed and make the 404 error page “prettier?”

    You have a number of options:

    – create a custom header.php file for your 404 page that simply omits the menu and then use get_header(‘foo’).
    – add the header markup (sans menu) to the 404 template itself instead of get_header().
    – edit the main header.php file and place the menu markup inside an is_404() conditional.

    Thread Starter katjo15

    (@katjo15)

    Thank you, Esmi! I will work on this.

    Thread Starter katjo15

    (@katjo15)

    Hi Esmi,

    As a forum moderator, are you able to remove my reference to the website in this discussion? I want to ensure that this page is not indexed in any search results. Thank you!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m sorry but posts aren’t edit as a matter of policy.

    http://codex.ww.wp.xz.cn/Forum_Welcome#Deleting_.2F_Editing_Posts

    Yours is not an extreme case.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘css on custom 404 error page’ is closed to new replies.