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
hook
How do you change the Gutenberg editor’s default font?
I am using the Gutenberg editor for my posts. My site is using the Avenir font for content and heading. So I was wanting the same font on Gutenberg editor also. But default Gutenberg editor is using the Google font “Noto Serif”. I replaced it with following tricks: I opened the functions.php file of active… Continue Reading
Displaying Product Description Above The Summary in WooCommerce
Product description is showing at below the product summary. In this tutorial I am showing how you will display it above the product summary section (see the screenshot) Here is the steps You will add all custom PHP codes in your theme’s functions.php file or any other place. It is totally depending on you. Unset… Continue Reading
Replacing default "Starter Pro" menu with your site name at Dashboard
There have a filter hook “starter_admin_menu” for admin menu. You’ll just drop the following code in your custom-starter/custom-functions.php file and see the magic. Snippet
1 2 3 4 5 |
//* Change Default Menu with Site Name add_filter( 'starter_admin_menu', 'gd_admin_menu' ); function gd_admin_menu( $menu ) { return __( 'Genesis Developer', 'starter' ); } |
After adding the following code I am getting this:
Creating Footer Copyright Text UI in Theme Settings page of Genesis Framework
Today one question is came out from my mind. Why we can’t change the default footer copyright text from Genesis Theme Settings page? Every time we are installing the “Simple Edit” plugin or manually adding few code in the functions.php file. So I thoroughly checked the Genesis Theme Settings php file and got 2 filter… Continue Reading