Doubt about template-parts in wordpress

1

I have already seen that in several themes wordpress has the folder template-parts and that folder contains files by eg: content.php and etc ... and that these files are loaded elsewhere of the theme with the function get-templates-parts (...);

My question is, if I create a file example.php inside the template-parts folder containing few lines of code and then I call that wall.php inside the header.php does it employee normally or not? is there a rule for using this folder? can I create my custom.php files to reduce other codes that got too big or not?

    
asked by anonymous 27.05.2018 / 23:30

0 answers