How do I bring a page template into a new theme with separate styling?

The problem is that your theme still load the main style.css sheet, because it is called by wp_head(). See the documentation here So, in order to not load your theme main stylesheet, you have to add to your functions.php file : add_action( ‘wp_enqueue_scripts’, ‘yolo_my_custom_template’ ); function yolo_my_custom_template(){ if ( is_page_template( ‘name_of_your_page_template.php’ ) ) : wp_deregister_script(‘twentynineteen-style’); … Read more

How to add javascript code into Divi child theme?

You’re almost there, change code in functions.php to: <?php function my_theme_enqueue_styles() { $parent_style=”divi-style”; wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ), wp_get_theme()->get(‘Version’) ); wp_enqueue_script( ‘et_mobile_nav_menu’, get_stylesheet_directory_uri() . ‘/js/selectpage.js’, array( ‘jquery’ ), true ); } add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ ); ?> Now your script should be located at: /wp-content/themes/divi-child/js/selectpage.js

Override plugin images so that they are not removed when the plugin is updated

Found a solution, but only for the woof woocommerce attribute filter plugin. I’ll just leave it here for anyone who might need it. there are these rules in the front.css file in plugins/woocommerce-products-filter/css which have to do with the icon. .woof_products_top_panel li span { padding-right: 16px; background: url(../img/delete.png); background-size: 12px 12px; background-repeat: no-repeat; background-position: Where … Read more