15,997 Points. You can add additional body classes by filtering the {@see 'body_class'} hook. Answer (1 of 5): The child theme is not for overwriting plugins. . Add the Css for your plugin manually after wp_head() in your header.php; Unregister the plugin css file and then load all the styles in your theme's styles.css; Register a new style to be inserted after the plugin runs. Overriding WooCommerce (or any WordPress plugin) functions: a semi ... The header's template attributes give a description of the child theme and link the parent and the child theme. Methods for Overriding Styles in WordPress | CSS-Tricks For this tutorial, we will be naming it wpbdemo. So, for the actions, please copy the whole piece of action code to the child theme and comment the code in the parent theme. The way to change a child theme is via a grandchild theme, awesome. How to override a Genesis child theme function - Mind IT Instead of blindly copying the CSS, entirely into your Genesis child theme's stylesheet, you have to selectively duplicate the styling rules. . The style.css file tells WordPress to load the Parent Theme's files after the Classic Child. Modifying the source code of a plugin directly is a big taboo, since updating the plugin will . Step 2. A Guide to Overriding Parent Theme Functions in Your Child Theme Copy the plugin shortcode function and put it anywhere in Child Theme and rename it like custom_cs_user_login_shortcode. I have a plugin and a custom post type class like this. Here's how: Open child theme functions.php; Create new class like this: add_action( 'after_setup_theme', function() { class D extends A{ function need_to_override(){ //original function code with your custom modifications } } new D(); }); You can copy the folder to the site using FTP, or create a zip file of the child theme folder, choosing the option to maintain folder structure, and click on Appearance > Themes > Add New to upload the zip file. Modify a Plugin's PHP Class in WordPress - Treehouse