Categories
Other

What is 2captcha?

So recently I was surfing the web and I’ve stumbled upon some interesting website called 2captcha. They basically offer API for solving, almost, any type of captcha. But first, let’s get straight with terms. What is a captcha? According to Google: CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a […]

Categories
JavaScript

JavaScript string replace

In our latest JavaScript article, we covered 2 easy ways to check if a JavaScript string contains a substring. In this article, we are going to cover the JavaScript string replace method. According to MDN: The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The […]

Categories
WordPress

WordPress post loop – part 1

WordPress post loop or The Loop, as WordPress documentation like to call it, is one of the crucial parts of WP. WordPress is CMS, currently the leader on the market, and it needs to have a super-easy way of displaying posts. That is what the WordPress post loop is for. Unlock the Full Potential of […]

Categories
JavaScript

2 easy ways to check if JavaScript string contains a substring

We can check if JavaScript String contains a substring using pre-ES6 way and ES6 way. ES6 brought a lot of new things that help developers do things faster. The same happened with the checking string for a substring. Check if JavaScript string contains a substring PRE-ES6 In order to check a string for a substring, […]

Categories
JavaScript

Unlimited arguments in a JavaScript function in 2 ways

Passing arguments to a function can be pretty tricky, especially when we are not certain about the number of those arguments. In this article, we are going to cover how can we pass unlimited arguments in a JavaScript function in 2 ways. Number of arguments in a JavaScript function? By default, we can pass as […]

Categories
WordPress

How to add a thumbnail to a custom WordPress theme?

We continue our series of articles on how to build a custom WordPress theme. In this article, we are going to talk about how to add thumbnail support to our custom WordPress theme. Unlock the Full Potential of WordPress Today! 🚀 Are you tired of struggling with WordPress? Ready to become a confident, skilled WordPress […]

Categories
JavaScript

JavaScript Object Keys

We have already mentioned JavaScript Object Keys when we spoke about Object manipulation in JavaScript. In this article, we are going to cover Object.keys() in-depth. What is the Object? According to MDN, the Object class represents one of JavaScript’s data types. It is used to store various keyed collections and more complex entities. Objects can […]

Categories
JavaScript

JavaScript Array length – the definitive guide

JavaScript Array length property is something we use, almost, every time we work with an array. But, often, we forget how powerful this property can really be. What is JavaScript Array length property The length property of an object which is an instance of type Array sets or returns the number of elements in that […]

Categories
JavaScript Tips&Tricks

How to create custom stackable toasts

Whenever we build some app there is a chance we are going to need stackable toasts. Toasts are basically notifications that inform users of some action that they can’t control. E.g. network connection lost, data saved, there is an error. Sometimes we need to show multiple notifications at once, that is where stackable toasts are […]

Categories
WordPress

How to easily add a WordPress menu to a custom theme

This is the fourth article on How to build a custom WordPress theme, using any HTML template. Today we are going to add a WordPress menu to our theme. The one that can be edited using Admin Dashboard, not hardcoded. In our latest article How to add the logo to a custom WordPress theme we […]