Here is the simple PHP snippet which will replace the “Beaver Builder” text in all places with your custom text. Put the following PHP code into your theme’s functions.php file. I use the custom text “Paul Builder” in the code. You will replace it with yours one.
Integrating Toggle Image Content into Elementor Accordion Widget
I add the toggle image content column at right side of the Elementor Accordion widget. Toggle image content means that image at right side will change when you will click on the Accordion title.
Adding CSS Class name to Post Tags
1 2 3 4 5 6 7 8 9 10 11 12 |
add_filter( 'term_links-post_tag', 'paulc_add_custom_class' ); function paulc_add_custom_class( $links ) { $new_links = array(); foreach ( $links as $link ) { preg_match( "|<a.*[^>]*>([^<]*)</a>|i", $link, $matches ); $class = strtolower( $matches[1] ); $link = str_replace( 'rel="tag"', 'class="' . str_replace( " ", "-", $class ) . '" rel="tag"', $link ); $new_links[] = $link; } return $new_links; } |
Simply add the above code into the functions.php file of your active theme. It will add the tag slug to class parameter of anchor tag.
Toggle Button Shortcode for WordPress Site
I’m showing how you will create a simple toggle button effect with PHP & JQuery for your WordPress site. I am making the shortcode because I can easily add this button at any pages/posts or custom post type content. PHP Open the functions.php file of your active theme and add this code at end of… Continue Reading
[Elementor Theme Builder]Displaying Category Description on Category Archive Page
As a SEO purpose it is a good idea. I am making the category archive page with Elementor theme builder. I shall display the category description below the category title. Here I am sharing my procedure. Adding The Short Description We shall add the short description to every category from Dashboard. Login to Dashboard Navigate… Continue Reading
Creating Tabs Layout With Beaver Builder Pro
Importing The BB Templates At first I am importing the demo content. Later you can edit the content with live data. Here is the procedure: Download this zip file and extract it on your machine. You will get two XML files. You will import them on your site. Login to Dashboard Navigate to Tools ->… Continue Reading
Automatically Adds Sub Categories as sub menu under Parent Category menu item
Assume you create Programming posts category and add it into your site menu bar. Later you are adding some sub categories like PHP, CSS, HTML, JQuery etc under Programming category. You do not need to add them manually from Menu page(Appearance -> Menus). These sub categories and any future sub category of Programming category will… Continue Reading
[Advanced Woo Search] Displays SOLD instead of Out Of Stock Status
Advanced Woo Search – powerful live search plugin for WooCommerce. Just start typing and you will immediately see the products that you search.Source: https://wordpress.org/plugins/advanced-woo-search/ One of the WooCommerce site I am using this plugin for product search. Client is maintaining the stock manager for his product. So client was wanting to replace the Out of Stock… Continue Reading
Removes Product Short Description Box from WooCommerce Product Edit Screen
One of the site I do not need the product short description meta box. Therefore I am completely removing this meta box from product add/edit screen. Here is the simple PHP snippets which I added to functions.php file of my theme.
1 2 3 4 5 6 7 8 9 10 11 |
<?php //* Do not include this line /** * Removing the short description meta box */ function paulc_remove_product_short_description_box() { if ( current_user_can( 'edit_post' ) ) { remove_meta_box( 'postexcerpt', 'product', 'normal' ); } } add_action( 'add_meta_boxes', 'paulc_remove_product_short_description_box', 50 ); |
In WooCommerce product short description meta box registered by add_meta_boxes hook with priority… Continue Reading
Adds Toggle Search Icon to OceanWP Theme’s Top Bar
OceanWP is a free theme on WordPress platform. You can download it from wordpress.org’s theme’s repository section. This theme have some cool features which are not available in any other themes. Recently I was working on site which is using this theme with Elementor page builder. Site have secondary menu bar at header top bar.… Continue Reading