Categories
Themes

How to properly set up a child theme and why

When you implement any theme in your WordPress website, you should always try to implement it with a child theme set up. There are many advantages to implementing a site with a child theme. Please go through the details below to understand more. What is a Child Theme & Why use it: A child theme

Categories
WordPress Security

Avoid File Manager plugin (critical security flaw)

File Manager plugin in WordPress is one of the most famous plugins with over 600,000 active installations. It allows users to browse, edit, and upload files and folders in your server that’s running WordPress. CAUTION: We strongly recommend that you never use any type of file manager plugin or WordPress’s inbuilt file editor. Vulnerability in

Categories
Errors

How to fix $.browser undefined error in WordPress

$.browser function has been deprecated from the latest jQuery version. It had the flags $.browser.webkit, $.browser.safari, $.browser.opera, $.browser.msie and $.browser.mozilla to detect respective browsers in previous versions. But now, if your site has code with these flags and your theme has the latest version of jQuery, then it will throw an error message sayings “undefined”.

Categories
Functions

How to check if a user has a specific role or capability in WordPress

In many WordPress projects, you will need to check if a user has a specific role or capability. In this tutorial, I will provide custom functions to accomplish that. custom function to check if the user has a specific role : Once you have defined the above code in functions.php, you can check for a

Categories
General

Best free Git GUI application for Windows : Sourcetree

I have tried several git GUI applications in my windows development environment and I have found Sourcetree to be the best git GUI application to be best. Let me share a few features of it. Integration with many remote git services You can easily add a remote git account from various services like Azure DevOps,

Categories
Woocommerce

Remove old items from cart when new items are added in woocommerce

Lets say you want users to click a buy now button and it should add a particular product with certain quantity to the cart by removing all other items. That’s when you will need this code handy. Just paste it in your functions.php file

Categories
Functions

Remove meta generator tags by WordPress and other plugins

Meta generator tag in WordPress reveals the plugin or WordPress core version which makes WordPress vulnerable. So, here i list snippets to disable meta tag generator by various plugins. Remove WordPress & Woocommerce meta tag generator This code will disable meta tag generated by WordPress, Woocommerce and many other standard plugins that hook up with

Categories
Comments Functions

Remove website field from comment form to reduce spam

Spammers love WordPress comment forms. They use bots that automatically post spam comments with malicious links in hundreds of websites. Their goal is to gain SEO juice out of your site. But what if there is a way to discourage them from using such tools on your website? Its simple, we can disable the website

Categories
Website Set up Plugins

How to change WordPress login URL

By default, WordPress website login url is wp-login.php. For example, if your WordPress website url is wpti.ps, then the website login is going to be wpti.ps/wp-login.php. WordPress is one of the most widely used CMS in the world. And hackers are always trying to attack as many sites as they can by performing many types of

Categories
Functions

How to create a short code to display recent posts

You may want to display most recent posts of your website in your WordPress website post or page. You can achieve that creating a custom WordPress shortcode. Let me first explain what is a WordPress shortcode and how it works. What is a WordPress shortcode? WordPress Shortcode is a feature defined in WordPress core that