• Hi-is it possible to have header.php and footer.php empty and make everthing happen in the page.php layout?
    regards
    theo

    • This topic was modified 3 years, 6 months ago by timholz. Reason: no link
Viewing 2 replies - 1 through 2 (of 2 total)
  • I think it is better to separate into 3 separate files

    header.php

    footer.php

    page.php

    Because separating parts of a page will reduce code writing, as well as errors that can occur. If you use a framework, you can learn MVC. However, you can also write it directly into the page.php file by using the <header></header> tag for the header and the <footer></footer> tag for the footer.

    Thread Starter timholz

    (@timholz)

    @lucaslitextension – thanks for responding. So, it is basically possible, because my concern was, that wp would probably reject empty header- and footer.php.
    My goal is a lay-out, that is basically structered by two vertical block-elements, that go from top to bottom. Each 50% wide. I guess this is only possible with the page.php/single.php and if header- and footer.php are empty.
    regards – theo

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header and footer as dummies’ is closed to new replies.