Using the child theme functions.php to change the customizer.php on parent theme

I’m trying to add a second logo option to the customizer.php of the parent theme using the functions.php from the child theme. But, I’m getting a 500 Internal Server Error. What am I doing wrong? This is the code of the customizer.php file inside the folder “extend” on the parent theme. function j007_customize_register( $wp_customize ) … Read more

PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex

My php_error.log in my console (locally on OSX) is reporting 3 PHP Notices. The PHP Notices only appear when browsing each admin page in the back-end for a site (running multisite) that uses a child theme. The child theme uses the parent theme’s sidebar.php which the code below is placed in. The PHP notices do … Read more

Should I ask a theme developer to use locate_template rather than require_once

I was creating a child theme today and needed to overwrite a php file which was included using this code in the themes functions.php file require_once( get_template_directory() . ‘/function-includes/theme-functions.php’ ); I tried using require_once( get_stylesheet_directory(). ‘/function-includes/theme-functions.php’ ); in my child themes functions file but it caused an error and didn’t load the site at all. … Read more

How to check active theme is parent or child wordpress

I am working on a plugin in plugin. I make template folder and in template folder and there are files of plugin that shows my post type data. First Scenario When user activate my plugin the template folder move to active theme folder. Its working perfectly. Second Scenario Now If there is parent and child … Read more

Override parent theme translation on child theme

I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages. Then I created a child theme that uses load_child_theme_textdomain() to achieve the same thing for its strings. There are certain translated strings for a particular language on the parent theme that I’d like to replace/override in the … Read more

replace parent theme images in child theme

My images are found in the parent theme in this folder directory structure: public_html/wp-content/themes/listingpro/assets/images I tried placing replacement images with the same name in the child theme under the same directory structure: public_html/wp-content/themes/listingpro-child/assets/images The images continue to follow the parent theme’s files. Is there a way to replace the image files through the child theme? … Read more