How can you change default color scheme in a Twenty Fifteen child theme?

I would expect that if you add a new filter with a higher priority it gets added to the existing color schemes: add_filter( ‘twentyfifteen_color_schemes’, ‘wpse193782_custom_color_schemes’, 99 ); function wpse193782_custom_color_schemes( $schemes ) { $schemes[‘default’] = array( ‘label’ => __( ‘Colors by Kat’, ‘twentyfifteen’ ), ‘colors’ => array( ‘#f1f1f1’, ‘#C32148’, ‘#ffffff’, ‘#333333’, ‘#333333’, ‘#f7f7f7’, ), ); return … Read more

How do you auto-activate plugins from child themes

include this function in your theme and use this hookfunction wp_register_theme_activation_hook($code, $function) { $optionKey=”theme_is_activated_” . $code; if(!get_option($optionKey)) { call_user_func($function); update_option($optionKey , 1); } } functions and examples: <?php /** * Provides activation/deactivation hook for wordpress theme. * * @author Krishna Kant Sharma (http://www.krishnakantsharma.com) * * Usage: * ———————————————- * Include this file in your theme … Read more

Remove action within a class in a parent theme from the child theme

To remove an action or filter, the function/method name and the priority must match with the previously added action/filter. The action you want to remove is added with a priority of 10 (default value) while you are trying to remove the action with priority of 99. Try this: remove_action( ‘woocommerce_product_options_inventory_product_data’, array( ‘Electro_WC_Helper’, ‘product_options_inventory_product_data’ ) ); … Read more

Copy customizer options to child theme

Definitely backup your database FIRST before trying this out. I just tested changing the option_name of a set of customizer changes to match a different theme, and it appears we can make the customizer changes switch to another theme simply by changing the option_name to match our new theme, instead of copying the option_value serialized … Read more

Child theme – copied some files from parent to child website still uses parent files

Try to override the parent theme functions instead of creating your child theme header-functions.php file. Here is a reference on how it can be done : https://www.mhthemes.com/support/overriding-parent-theme-functions-child-theme-tutorial/ Check if the parent theme header-functions.php file is implementing pluggable functions. Then you can override them in your functions.php file.