1

I have a custom home.php design only for my homepage, also I have an index.php that made for page like: http://example.com/page/11

my problem is that for this page http://example.com/page/11 WordPress load home.php how can I load index.php for this page?

Note: I don't want to use custom blog page like : http://example.com/blog/page/11

Note: I try front-page.php and it doesn't work too

7
  • homepage.php does not exist in the WP hierarchy, how are you linking it? Did you try front-page.php instead?
    – kero
    Commented Dec 18, 2020 at 10:37
  • @kero I edit question, I mean home.php
    – Heisenberg
    Commented Dec 18, 2020 at 10:53
  • front-page.php is probably what you want ( is there a hyphen in the middle of the filename? )
    – Tom J Nowell
    Commented Dec 18, 2020 at 11:03
  • @tom-j-nowell I try front-page.php and it doesn't work too.
    – Heisenberg
    Commented Dec 18, 2020 at 11:14
  • 1
    front-page.php is for the immediate homepage, rather than the pagination, so put the contents of home.php into front-page.php, then put the contents of index.php in home.php
    – Tom J Nowell
    Commented Dec 18, 2020 at 11:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.