Menu icon Foundation
JointWP - Best practice - location of custom templates?

Structuring project folders for custom template files, additional code template parts files.

 

New to Foundation and JointsWP. Excited to get started.

 

Question:

Is there a recommended, "best practice" location for custom template files?

 

For custom template parts files I assume put them in the parts folder. 

parts/

 

 

 

For custom templates?

 

1. Create a new folder named (templates/ ?  OTHERNAME/ ?) and include my custom template files with a naming convention such as follows: 

 

templates/page-home-index.php

 

templates/page-woo-shop.php

 

templates/page-woo-product-single.php 

 

OR

 

2. Just place custom template files in the root directory with single.php header.php footer.php etc?

 

OR

 

3. Some other suggestion?

 

 

Thanks in advance for sharing your insight.

templatesBest Practice

Structuring project folders for custom template files, additional code template parts files.

 

New to Foundation and JointsWP. Excited to get started.

 

Question:

Is there a recommended, "best practice" location for custom template files?

 

For custom template parts files I assume put them in the parts folder. 

parts/

 

 

 

For custom templates?

 

1. Create a new folder named (templates/ ?  OTHERNAME/ ?) and include my custom template files with a naming convention such as follows: 

 

templates/page-home-index.php

 

templates/page-woo-shop.php

 

templates/page-woo-product-single.php 

 

OR

 

2. Just place custom template files in the root directory with single.php header.php footer.php etc?

 

OR

 

3. Some other suggestion?

 

 

Thanks in advance for sharing your insight.