Web Technologies

How to add custom classes to the body tag in WordPress?

How to add custom classes to the body tag in WordPress?

WordPress is most common CMS used all around the world. It is developer friendly cms that helps developers to customize as they want. Sometimes, developers need to add extra classes to body. In this blog post, we will discuss how to custom classes to body tag. To add custom classes to the body tag you …

How to add custom classes to the body tag in WordPress? Read More »

What is the difference between add_filter and apply_filters

What is the difference between add_filter and apply_filters?

Introduction add_filter() and apply_filters() are two WordPress function which are often difficult to understand how these two functions work together. In this blog post, how to use add_filter() and apply_filters()effectively. How apply_filter works? Most updated information about using WordPress functions can be found on the Codex: apply_filters( $tag, $value, $var_1, $var_2, … ); Calls the callback functions that have …

What is the difference between add_filter and apply_filters? Read More »

How can you trigger a Bootstrap modal programmatically?

How can you trigger a Bootstrap modal programmatically?

How can you trigger a Bootstrap modal programmatically? Bootstrap is a powerful front-end framework that allows developers to create responsive, mobile-first websites. One of its most powerful features is the modal component, which can be used to create pop-up windows. Modals are often used to display additional information or gather user input. In some cases, …

How can you trigger a Bootstrap modal programmatically? Read More »

How to Change WooCommerce Coupon Error Messages

How to Change WooCommerce Coupon Error Messages?

How to Change WooCommerce Coupon Error Messages ? WooCommerce is a powerful eCommerce platform.  In order to change WooCommerce coupon error messages you will need access to the functions. PHP file of your active theme. If you would like to change the default woocommerce error message that I get when client enters a coupon than you …

How to Change WooCommerce Coupon Error Messages? Read More »

How to smooth scroll to an id after clicking a link from another page?

How to smooth scroll to an id after clicking a link from another page?

How to smooth scroll to an id after clicking a link from another page? Say that you have a link in a page, <a href=”https://example.com/#sample”><p>Click Me</a> It’s easy, and can be done using a few lines, with jQuery. When using $(‘a[href*=\\#]’), it only/automatically applies to all anchors (<a>) with a hash (#). Sample 1: $(document).ready(function() …

How to smooth scroll to an id after clicking a link from another page? Read More »

How to make a custom column on the Users admin screen sortable

How to make a custom column on the Users admin screen sortable?

Sometimes, we need to add a new column on the users admin screen sortable. In this blog post you will learn how to add custom column in All users menu in the backend. Here is the code that allows to add custom fields. In this example we would add company name as a custom field. …

How to make a custom column on the Users admin screen sortable? Read More »