How can I add a new template item (named e.g. “Legal”) under “Page Attribute > Template”?
I’m using a Pro and Child theme for the modifications.
I placed a new PHP file template-legal.php, in the child theme on the path:
\themes\childthemename\framework\legacy\templates\
This file is based on the existing Pro file template-blank-1.php in which I appropriately changed “TEMPLATE NAME” comment to:
// TEMPLATE NAME: Legal
However, the new template does not show in the drop-down.
What I additionally tried:
#1
I copied the existing template-blank-1.php in the child theme in the path: \themes\childthemename\framework\legacy\templates\
and added:
echo 'TESTING';
which outputs TESTING on the Front-End.
So, the directory path in the child theme is OK.
#2
I copied my template-legal.php in the Parent Pro theme on the path:
\themes\pro\framework\legacy\templates\
And the template does show in the drop-down.
So, my php file is OK.
What am I missing?
Can you please help me out?
Kind regards.