Creating new templates in child themes breaks layout

I was having the same problem as the OP, when working in a child theme and copying the sidebar-page.php file to make my own template file (named register.php).

Then I noticed in the original template pages, in the body tag there is a class ‘.page-template-sidebar-page-php’ whereas in my new template it was showing up as ‘.page-template-register-php’

So I’m editing style.css (in my child theme folder) to add ‘.page-template-register-php’ wherever ‘.page-template-sidebar-page-php’ appears, but that wasn’t all.

There was also a class ‘singular’ in my new style. I had to edit my child theme functions.php and add ‘&& ! is_page_template( ‘register.php’ )’ into line 613 ‘s if clause. then it worked