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
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
Change ‘You may also like’ text on WooCommerce pages
Do you want to change “You may also like” headline text on WooCommerce pages? You can easily add custom headline in place of “You may also like” title that displays above the WooCommerce products grid section at the bottom part. Preview: Title above the products grid PHP Snippet: Change the default title textt In the… Continue Reading
Add 5th widget area in footer widgets of Beaver Builder Theme
By default, a maximum of four widget areas are available in the footer widgets section of Beaver Builder Theme. Do you want to add an additional 5th widget area to footer widgets part of Beaver Builder Theme? This is possible by registering a new widget area at a specific location in Beaver Builder Theme. Enable… 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
Remove Description text from Category Archive Pages in Astra theme
Do you want to remove description text from category archive pages when using the Astra Theme? This can be implemented with a filter hook targetting using the code shared below. Code Snippet: Remove category description text In the WordPress Dashboard, go to Appearance > Theme Editor and open the functions.php file of your Astra child… Continue Reading
Add H1 tag to website Logo on Homepage of Astra theme
Want to add the H1 tag to website logo in the Astra theme for SEO reasons? While inner pages have their page title as H1 tag, you may want to wrap logo with H1 tag for homepage only when using Astra theme. This can be achieved via custom code. Code Snippet: Add H1 tag to… Continue Reading
Display advt after specific post on Blog Page in Astra theme
Do you want to display advertisement after a specific number of posts on the blog page? This can be achieved in the Astra theme using custom code. Besides executing ad code, you can use the same code logic to display any content between posts listing on the blog page. Display ads between posts on Blog… Continue Reading