Duplicate page template changed body class… Why/how/where?
-
Theme: Themify Base (with child)
I duplicated a theme page template called “Full Width Page”
I changed only the filename (including the ‘filename’ reference at the top of the code).When I apply the template to a page, it loads but it changes one attribute in the body class:
“sidebar-none” changes to “sidebar1”
Can someone please tell me what I need to change to have the template produce the exact same result as the original?
Thanks.
-
It sounds like you’re working on a self hosted WordPress.org site. You’ll need to post over in the WordPress.org forums:
-
Thanks. I did that already. I didn’t think it mattered. I thought all wordpress forums helped all wordpress users…
-
In case anyone else needs this answer:
There was a function in themify-utils.php setting the layout to ‘sidebar-none’ IF the page template was ‘full-width’.
All else defaulted to sidebar1.
I duplicated that function for my ‘custom-full-width’ template to also set the layout to ‘sidebar-none’.This duplicate code I placed in functions.php and it works great.
-
Nobody here needs this answer because nobody here has this issue or has php access, so nobody here can use this solution.
- The topic ‘Duplicate page template changed body class… Why/how/where?’ is closed to new replies.