CSS border arrow

  • Post author:
  • Post category:CSS

/** Right ***/.arrow_box { position: relative; background: #fff; border: 1px solid #000; } .arrow_box:after, .arrow_box:before { left: 100%; top: 50%; border: solid transparent; content: ""; height: 0; width: 0; position:…

Continue ReadingCSS border arrow

Add/enqueue custom script in WordPress

function theme_js() { wp_enqueue_script( 'theme_js', get_stylesheet_directory_uri() . '/js/custom.js', array( 'jquery' ), '1.0', true ); } add_action('wp_enqueue_scripts', 'theme_js'); In custom.js add the code like this: jQuery(function($) { $(document).ready(function(){ $('#sec1').addClass('shown'); $('#btn1').addClass('active'); });…

Continue ReadingAdd/enqueue custom script in WordPress

Save woocommerce order fields in uppercase

add_filter('woocommerce_checkout_posted_data', 'my_custom_woocommerce_checkout_posted_data'); function my_custom_woocommerce_checkout_posted_data($data){ if($data['billing_first_name']){ $data['billing_first_name'] = strtoupper($data['billing_first_name']); } if($data['billing_last_name']){ $data['billing_last_name'] = strtoupper($data['billing_last_name']); } //shipping fields too if($data['shipping_first_name']){ $data['shipping_first_name'] = strtoupper($data['shipping_first_name']); } if($data['shipping_last_name']){ $data['shipping_last_name'] = strtoupper($data['shipping_last_name']); } return $data; }

Continue ReadingSave woocommerce order fields in uppercase