Customizing /inc/template-functions.php in Child Theme
-
Customizing /inc/template-functions.php in the child theme is not overriding the parent theme.
We are trying to remove the sidebar (i.e. not add has-sidebar class to the body) on a single page for a custom post type. Adding
&& ! is_singular('staff')
to line 43 in the parent theme’s /inc/template-functions.php file works. But making the same change in a child theme’s /inc/template-functions.php does not work, nor does copying the function to the child theme’s functions.php file.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Customizing /inc/template-functions.php in Child Theme’ is closed to new replies.