CSS modify does not work on child thêm
-
Hi,
I have created a Child Theme from OceanWP, I did some modify in the file style.css of OceanWP-Child theme however it does not take any effect. This is my functions.php and style.css file:
functions.php
<?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’, 11 );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘child-style’, get_stylesheet_uri() );
}
add_action( ‘woocommerce_after_cart’, function() {
?>
<script>
jQuery(function($) {
var timeout;
$(‘div.woocommerce’).on(‘change textInput input’, ‘form.woocommerce-cart-form input.qty’, function(){
if(typeof timeout !== undefined) clearTimeout(timeout);//Not if empty
if ($(this).val() == ”) return;timeout = setTimeout(function() {
$(“[name=’update_cart’]”).trigger(“click”);
}, 500); // 0.5 second delay
});
});
</script>
<?php
} );
?>
style.css Files:
*/
Theme Name: OceanWP Child
Theme URL: https://duocphamnga.com
Description: OceanWP Child Theme by Edited by Duc
Author: Duc Nguyen Ba
Author URL: https://duocphamnga.com
Template: oceanwp
Version: 1.8.7
Text Domain: OceanWP Child
*/ Custom CSS goes after this line
.woocommerce-cart table.cart td.actions button[name=’update_cart’] {
float: right;
display: none;
}
.wpcf7 {
background: #A3A3A3;
border: 1 px solid #494949 ;
width: 700 px;
}
- The topic ‘CSS modify does not work on child thêm’ is closed to new replies.