Home > OS >  I created a page in wordpress named aboutUs and created a aboutUs.php in the folder that functions.p
I created a page in wordpress named aboutUs and created a aboutUs.php in the folder that functions.p

Time:10-25

The file aboutUs.php is in the same file as page.php and header.php Here are the steps i took

  1. Created page via wordpress and name it About-Us
  2. Created a file called aboutUs.php in folder where page.php and header.php exist

These are the steps I took yet any changes made to the aboutUs.php i created does not apply to the page

CodePudding user response:

You need to do it like that: page-{slug}.php, so in your case( if page slug is about-us ) - page-about-us.php Also check documentation - Page Template Files

  • Related