I have made simple wordpress layout and the border-bottom in footer do not show. Here is the part of the code of my style.css file:

.site-header {
    border-bottom: 2px solid #999;

.site-footer {
    border-top: 20px solid #999;

The header border shows correctly but the footer doesn't. Thank you for any ideas.

  • are you using default theme or custom theme? Apr 24, 2017 at 6:31
  • I am creating my own theme
    – Karel
    Apr 25, 2017 at 8:20

3 Answers 3


Do you have add below the class ?


In footer section like

<header class="site-header">

Please check.

  • I have written <footer class="site_footer"> with the typo "_" instead of "-". Thank you.
    – Karel
    Apr 25, 2017 at 17:55
  • ok so now you can see the border of footer?
    – Tarun modi
    Apr 26, 2017 at 4:56
  • I can see the footer, the header was ok
    – Karel
    Apr 27, 2017 at 17:31

Seems like either

wp_head() or

wp_footer() is missing

Please check your header.php & footer.php for the above 2 functions in case you have enqueued styles from functions.php

  • Could you please look at the code below, I have pasted it as an answer because of long text. I hope I have the wp_head() and wp_footer() in suitable files but maybe something is missing there :(
    – Karel
    Apr 25, 2017 at 8:23

wp_footer() and wp_head() seems to be corrent. I can see in your code, that you've added the css class to the header (<header class="site-header">). But i cannot see the beginning of the <footer> element. Did you add the css class correctly to the footer element?

  • There was typo: header OK: <header class="site-header"> footer nOK: <footer class="site_footer"> I have written "_" instead of "-". Thanks to your answer I have finally found it. Thank you.
    – Karel
    Apr 25, 2017 at 17:51
  • So if it works now, you maybe could accept the answer of @Tarun modi or my answer as solution :)
    – ahendwh2
    Apr 26, 2017 at 6:26
  • Thank you, I did not know how the forum works. I wish I could accept both answers :-)
    – Karel
    Apr 27, 2017 at 17:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.