Amitpal Singh
Blog

Tutorials and code snippets

Fixes and how-tos for WordPress, WooCommerce, JavaScript, PHP and Cordova, written while building client projects.

WooCommerce

How to change or trim WooCommerce product title on loop?

change or trim WooCommerce product title on loop

Web development

Remove "Category:", "Tag:", "Author:" from the_archive_title

Remove category word from archive or category title

WordPress

How to display breadcrumb in WordPress without plugin?

display breadcrumb in WordPress without plugin

WooCommerce

Get all orders and orderdata of a single customer in WooCommerce by user ID

get all orders by user id

JavaScript

How can I get an object's absolute position on the page in JavaScript?

How can I get an object’s absolute position on the page in Javascript?

JavaScript

How to get the switch toggle state(true/false) in javascript?

How to get the switch toggle state(true/false) in javascript Here’s How to add the text “ON” and “OFF” to toggle button

WordPress

Add a custom class name to Wordpress body tag?

Add a custom class name to WordPress body

WooCommerce

How to add suffix to child order in woocommerce?

How to add suffix to child order in woocommerce?

WooCommerce

How to add suffix to parent order in woocommerce?

How to add suffix to parent order in woocommerce?

WordPress

How to make elementor column clickable? (no plugin)

How to make elementor column clickable? Add the following code to Functions.php

WordPress

Get child of parent categories in wordpress

Get child of parent categories in wordpress rest api and json method: Paste below code in functions.php Fetch using this url below (don’t forget to change…

WordPress

Get only parent categories wordpress

Get only parent categories wordpress rest api and json method: Paste below code in functions.php Fetch using this url below (don’t forget to change domain…