I have created a page template called
page-templates directory with the following content:
/* Template Name: Concert*/
add_body_classes('page_concert'); /* Custom function that adds arguments to
body class using body_class filter */
The template shows up in the page editor as expected, however when loading a page that uses this template the default
page.php template is used instead.
I've read in some threads that for a child theme to properly load page templates it is necessery to have a proper
page.php, which I do have set in my theme folder. Also, some people have pointed out that the existence of a
front-page.php leads to home page not loading its set template, however deleting the file from parent theme didn't do much for me.
The use of
Template: theme-name inside the theme's
style.css has said to be problematic, as well. But without that line of code the child theme becomes a standalone theme.
How can I make my custom page template work in a child theme? Has anyone been through the same situation?