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
Code
Override Core WooCommerce Template Files in Oxygen Builder
Oxygen builder have an add-on for WooComerce plugin and you can create the custom shop, archive, single product etc pages quickly. But sometimes we are getting the complex challenge, and that time we need to edit the core templates files. WooCommerce have an option. You can easily override the templates file from your active theme’s… Continue Reading
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
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
Creates Portfolio Custom Post Type in Beaver Builder Theme
How do you add a custom post type in your Beaver Builder theme without any plugin? I want to create a custom post type “portfolio” to showcase my work. I used the following PHP scripts in Beaver Builder Child theme. Register Custom Post Type “Portfolio” Open the class-fl-child-theme.php file from bb-theme-child/classes folder. Add the following… 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: