Categories
Woocommerce

How to display product price using shortcode

Here is the code snippet that you can use to create a shortcode and use it in any of your posts or pages to display the price of a specific product. You just have to specify the woocommerce product ID of that product like the given example. [woo_product_price id=20]

Categories
General

How to reset WordPress installation

While developing a WordPress website, we sometimes, end up doing some mistakes, or doing specific customization, which we want to erase completely, and RESET the WordPress site back to default data. We can achieve this in the following ways : Easy Way ( using a plugin ): The easiest way to reset WordPress installation is

Categories
Woocommerce

How to show or hide ACF field based on Woocommerce order status

You may want to show different Advanced Custom Field group based on status of your Woocommerce order status. Here we discuss the steps you can take to achieve this easily. You should know two basic things before we get started. Woocommerce Order status types : Woocommerce orders are a custom post type and order status

Categories
WordPress Plugin

How to add the | and ~ separator options back in Yoast SEO plugin

The pipe ( | ) and tilde ( ~ ) separator options for the title have been removed from Yoast SEO plugin version 17.1. As per Yoast, It was done because Google frequently replaces these symbols in search results. For more details, please visit the changelog of the Yoast SEO plugin version 17.1 https://yoast.com/yoast-seo-17-1/ If

Categories
Cloud Server

How to change ssh port and secure it by fail2ban in Linux server

I use runcloud to manage most of my Linux servers, so i have given screenshots of runcloud servers. But you can follow the steps to achieve the same in any Linux server. By default, runcloud has ports 22 (ssh), 80(HTTP), and 443(HTTPS) open, and port 22 is secured by the fail2ban application. If you scroll

Categories
Push Notification

How to customize OneSignal prompt text : use acceptButton & cancelButton instead of acceptButtonText & cancelButtonText

Recently, I had to initialize OneSignal with a custom call and realized that the custom text for prompt was not working. I wanted it to say “No Thanks” instead of the cancel button as per the screenshot below. I was using code as per the OneSignal documentation, as per the given screenshot below. As per

Categories
Woocommerce

How to add text before or after price in WooCommerce

You can use the WooCommerce filter woocommerce_get_price_html and woocommerce_cart_item_price to add a string before or after the price in WooCommerce product and cart pages. Here is the code that you can copy and paste in your active theme’s functions.php file: You can use the above simple code snippet in your active theme, or use the

Categories
Website Speed Optimization

How to serve WebP images dynamically in RunCloud using EWWW Image Optimizer plugin

You can use EWWW Image Optimizer plugin to serve WebP images on your website. But you will have to implement some Nginx configurations in your RunCloud server to be able to achieve it. Follow the instructions below. Select your server and go to the Web Application page that you want to implement the WebP configuration

Categories
Woocommerce

CartFlows overwrites some WooCommerce templates and here is how you can overwrite them

Recently, I got a request to add additional text under the product name on the checkout page. It seemed an easy job. All I had to do was create a file at woocommerce/checkout/review-order.php in, the active theme’s directory. But it didn’t work. Because the CartFlow plugin was overwriting some WooCommerce templates. List of WooCommerce templates

Categories
WordPress Security

5 Simple rules in Cloudflare to Secure your WordPress website

You can add an extra layer of security to your WordPress website using the Cloudflare service. Here is a list of rules that you can apply to your website in Cloudflare settings to improve security. Secure WordPress login page and administrator section Secure WordPress admin and login URL from bot attacks by making sure that