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 […]

Categories
JavaScript

Array entries method in JavaScript

We have already covered several methods regarding arrays in JavaScript. Today we are going to speak about the array entries method in JavaScript. The entries() method returns a new Array Iterator object that contains the key/value pairs for each index in the array, as per MDN. What does this mean? It means that an entries() […]

Categories
WordPress

How to add the logo to a custom WordPress theme

This is the third article in the WordPress series. We already talked about how to create a custom theme, and how to embed assets into a WordPress theme. Today we are going to talk about how to add the logo to a custom WordPress theme. We are going to use the same theme, we used […]

Categories
Other Tips&Tricks

Blog ideas: 5 easy ways on how to get them

Having a blog can sound like a really scary thing. The most frequent question about blogging is how and where to find blog ideas. It is easy in the beginning, but once we start writing frequently (Webinuse is being updated almost every day) we can face creative blockage. Today we are going to talk about […]