I create the gallery meta box with ACF gallery field and uploading the images to my pages. At frontend I shall want one random image from those gallery images. Here is the steps. PHP Snippet At first you would copy the following PHP code and paste into the Code Snippet plugin. Or you can use… Continue Reading
Basic
Display dynamic data to next field’s label in Fluent Form
JavaScript
Removing the BB schema from Beaver Builder Post Module
Removing the full Schema There have a filter fl_post_grid_disable_schema in BB Post Module. You can easily disable the schema via this simple PHP code.
1 |
add_filter( 'fl_post_grid_disable_schema', '__return_true' ); |
Removing only Author Schema
1 |
add_filter( 'fl_schema_meta_author', '__return_null' ); |
Removing Publisher Schema
1 |
add_filter( 'fl_schema_meta_publisher', '__return_null' ); |
Removing Publish Date Schema
1 |
add_filter( 'fl_schema_meta_general', '__return_null' ); |
Removing Comments Schema
1 |
add_filter( 'fl_schema_meta_comments', '__return_null' ); |
Removing Featured Image Schema
1 |
add_filter( 'fl_schema_meta_thumbnail', '__return_null' ); |
Where Shall I Place The Code? In… Continue Reading
How to you overwrite the Beaver Builder modules from Theme
We already knew that we can overwrite the existing Settings Form fields and frontend.php file of a module via hooks. But sometimes we require to modify the other files like fronend.js.php, frontend.js and other inner files of a module as per the site requirement. We can do this without touching the core plugins (like BB,… Continue Reading
Adds Custom CSS Class into WP Fluent Forms Markup
Are you trying to add the custom CSS class into WP Fluent Form’s <form> HTML markup? You can easily do it without editing the code plugin. There have a filter fluentform_form_class to add the custom class into <form> tag. I am sharing the PHP snippet at below. You will put it into functions.php file of… Continue Reading
Adds Custom Text after Product Price
Price value is printing on shop, category and single product page via get_price_html() function. get_price_html() is a method of WC_Product_Variable class. In this method have a filter “woocommerce_get_price_html”. You can customize the current price structure with this filter as per your requirement. In this tutorial I use this filter woocommerce_get_price_html and add the custom text… Continue Reading
Edits the Add To Cart text on Single Product Page
How do you customize the default “Add to cart” text on single product page? You can easily do it without editing the core file. There have a filter “woocommerce_product_single_add_to_cart_text” for single product’s add to cart text. Change The Add to cart Text Adds Price Value in Add to cart Button Where are you add the… Continue Reading
Disabling sortable functionality for product attributes at Dashboard
I tried this PHP snippet and added into the functions.php file of my active theme.
How to change author info link in blog post?
In this tutorial I am showing how you will change the default author link with custom link. Changing The Link For All Authors Changing The Link of a Specific Author I’m changing the link for a specific author only. Check the PHP snippet at below:
Disable The Completed Order Notification Email
Three ways you can disable the COMPLETED order status notification email on your WooCommerce shop. Method 1: Via WooCommerce Settings Page You can easily disable the option from WooCommerce Settings page. Login to your Dashboard Navigate to WooCommerce -> Settings page Click on Emails tab Click on the Manage button of Completed Order row Turn… Continue Reading