I am globally removing the site header from entire site. I’m not using the Astra Pro version. So I am not sure that this option is available or not. I used following tips which I am sharing at below: Open your functions.php file of your Astra child theme and drop this simple PHP code there.… Continue Reading
Basic
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
How do you remove “i1.wp.com” from your image URL
Last time I worked on a client project and he was fetching the strange issue with his image URL. Image URL was appending with https://i1.wp.com. Actually he was using the JetPack’s CDN for image optimization. So image was directly from JetPack CDN sever. But problem was that some images are not loading on his site.… Continue Reading
Removing Gutenberg Welcome Panel from Dashboard
WP 4.9.8 is displaying the Gutenberg panel on your dashboard. Gutenberg is the codename for the new WordPress editor which will be releasing in WP 5.0. Right now this welcome panel is creating the confusion to my clients. So I am completely removing it from the Dashboard. Therefore my client will not see it. I added this… Continue Reading
Skip Invoice for Cancelled & Failed Order in WooCommerce PDF Invoice Plugin
I am wanting to skip the invoice for my cancelled & failed order. I am using the WooCommerce PDF Invoice plugin. It is very simple and easy job. Plugin have a filter bewpi_skip_invoice_generation. So you can do it without editing the core plugin.
1 2 3 4 5 6 7 8 9 10 11 |
function cpaul_skip_invoice_generation( $bool, $status, $order ) { /** * wc-failed slug is for Failed order * wc-cancelled slug is for Cancelled order */ if( $status == "wc-failed" || $status == 'wc-cancelled' ) return true; // true to skip return bool; } add_filter( 'bewpi_skip_invoice_generation', 'cpaul_skip_invoice_generation', 10, 3 ); |
Just drop the above code into your functions.php file or custom… Continue Reading
Update Price Automatically When Quantity Changes on Click
I built a order form using WordPress Contact Form 7 plugin. I’m wanting to update the price automatically when quantity field’d value is changing on mouse click or key press. See the animated image file. You can understand the requirement. I added the simple JS code into my js file. Assume your quantity field name… Continue Reading
Changing Website URL in WordPress
This tutorial will show you how you will change the old site URL with new site URL in WordPress. It is very easy job. Anyone can do this in 30 mins. Here is the steps for it: Update wp-config.php file via FTP/CPanel Connect to your server with FTP or CPanel. Download the wp-config.php file and… Continue Reading
Retrieving Admin Password using PHPMyAdmin
This method is requiring when you are unable to reset the password from WordPress login page. Personally I am following this techniques: At first I am installing the fresh WordPress at my localhost and creating the administrator account. Later I am opening the localhost’s phpMyAdmin and copying the password from wp_users table (image attached). Now… Continue Reading
Enabling the avatar in custom comment types
Few days ago I worked on a project. Client was wanting extra two new types (review & question) at comment form. All things implemented successfully. Only problem was that avatar for review/comment type was not coming at frontend & backend. I researched too much and got that avatar is allowed for comment type only. But… Continue Reading