How to add input search field with roudned corners?

Your markup is technically correct with the exception of your first line of css. You need to remove the e before the .searchform declaration for it to accept those styles. The code below is working correctly (see demo here: however if your input still doesn’t show rounded borders it might be that your styles … Read more

Need help saving input fields for Security Deposit plugin in WC Vendors page

You will need to add a custom field to the product-edit form, saving is done automatically if you correctly format your input id. WCVendors_Pro_Form_Helper::input( array( ‘type’ => ‘checkbox’, ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product__wc_security_deposits_enable’, ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => __( ‘Enable this to … Read more

Widget plugin and input file

add_action(‘post_edit_form_tag’, ‘post_edit_form_tag’); function post_edit_form_tag() { echo ‘ enctype=”multipart/form-data”‘; } Add the above code in your active theme’s functions.php file. Then print_r($_file) will display the file array.

How to save checkbox choice in wordpress

If I understood correctly, you are not able to save using update_post_meta. If this is you can try saving using jQuery using ajax, try this. //on change checkbox jQuery.ajax({ type: ‘POST’, url: “/wp-admin/admin-ajax.php?action=your_custom_function”, data:{ meta_id: ‘YOUR_META_ID’, //get user or post meta and set here meta_value: ‘YOUR_META_VALUE’ /the value you want to save in the meta … Read more

Hide input field when second input field is in focus

This question is out of scope here. You should try stackoverflow for this question. Though I would like to answer your question. You need to use some CSS as well as JQuery for getting the desired result. See the working fiddle here. Hope this works for you. CSS addition: input[type=subscribe]:focus + input[type=search] { display:none; } … Read more