Woocommerce – Checkout error message

you can try it for address not required . add_filter( ‘woocommerce_billing_fields’, ‘wc_optional_billing_fields’, 10, 1 ); function wc_optional_billing_fields( $address_fields ) { $address_fields[‘billing_address_1’][‘required’] = false; $address_fields[‘billing_address_2’][‘required’] = false; return $address_fields; }

How to do Conact form 7 name field validation? [closed]

According to the documentation you have to create a custom filter to support it – you can do it like this: add_filter( ‘wpcf7_validate_text*’, ‘custom_text_validation_filter’, 20, 2 ); function custom_text_validation_filter( $result, $tag ) { if ( ‘your-name’ == $tag->name ) { // matches any utf words with the first not starting with a number $re=”/^[^\p{N}][\p{L}]*/i”; if … Read more

How to scroll to a shortcode-generated anchor

It’s not really a WordPress related question, but since it was simple I posted an answer for you. You can scroll to your element by using jQuery. Check if the query var is set, if so, scroll to the element after the page has been loaded: (function($){ // Function to get the current query var … Read more

I want to increas my site image [closed]

In the ‘additional CSS’ section of your theme customization area, try this CSS .rsrc-header-img {width:500px;} …changing the width value as needed. If your theme doesn’t have an ‘additional CSS’ setting, there are plugins that will add that to your theme’s customization page. Or, you could create a Child Theme, then put the above CSS in … Read more

Shortcode Site include in a other

It is very hard to understand what you are trying to ask? Do you want to know how to use a plugin’s shortcode? if so, then you can copy the shortcode in the content section of the new post or page. For Example, if the shortcode for the plugin is [plugin-shortcode]. Then just publish or … Read more

Visual Composer Data Source?

I found this in the raw category template in the woocommerce files. <?php /** * The template for displaying product category thumbnails within loops * * This template can be overridden by copying it to yourtheme/woocommerce/content-product_cat.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will … Read more