React: loop inside JSX code

If you are using React JS and want to add a component multiple times, maybe inserting it into some JSX code, you could think of using a for loop inside the return statement of your JSX. But this approach doesn’t work in JSX, as you should compose the returned value from the render function of … Continue reading “React: loop inside JSX code”

How to turn off ESLint rule via config file or via javascript

ESLint is fully configurable, so you are able to turn off linting rules. There are two ways for disabling rules: you can tell ESLint to do this from a Javascript comment or from a configuration file. How to turn off an ESLint rule from the .eslintrc config file To disable specific rules from the .eslintrc … Continue reading “How to turn off ESLint rule via config file or via javascript”

How to change the author link in WordPress

If you want to change the author link in the meta information of your WordPress posts (inside the red box in the image above),  follow the following steps: 1. Create a child theme A child theme is a theme which inherits its style and behaviour from its parent theme, but allows you to modify functions and … Continue reading “How to change the author link in WordPress”

How to remove the link from the date in the Twenty Sixteen WordPress theme

If you want to remove the link from the date field in the meta-information of the WordPress Twenty Sixteen theme, follow the following steps: 1. Create a child theme A child theme is a theme which inherits its style and behaviour from its parent theme, but allows you to modify functions and styles. These changes … Continue reading “How to remove the link from the date in the Twenty Sixteen WordPress theme”

Javascript module pattern with constructor with arguments

As Douglas Crockford wrote on Javascript: the good parts, a module is a function or object that presents an interface but hides its state and implementation. I used indeed the module pattern once I needed encapsulation, i.e. to have a class method that had a public interface but that hid implementation details. In addition to encapsulation I … Continue reading “Javascript module pattern with constructor with arguments”

How to disable category description on hovers and have smaller pages in WordPress

The WordPress category widget, by default, creates an on hover category description when you move the mouse over a category. You can see an example in the image above. To do this, WordPress adds the description of each category on each page where the widget is. So, you end up having the category descriptions in … Continue reading “How to disable category description on hovers and have smaller pages in WordPress”

How to create a child theme for Twenty Sixteen

A child theme, in WordPress, according to the definition in the Codex, is …a theme that inherits the functionality and styling of another theme Creating a child theme is the recommended way to change the appearance of your theme. These are the basic  instructions to create a child theme for the Twenty Sixteen theme: create … Continue reading “How to create a child theme for Twenty Sixteen”

How to use React from the browser

React, as you probably know having reached this page, is a visualization framework created by Facebook. This small guide explains how to use react from the browser without any additional tool. Professional development with React nowadays includes the usage of npm (node package manager) to install packages like React and ReactDOM, and that of module bundlers … Continue reading “How to use React from the browser”

How to insert breadcrumbs into WordPress with Yoast

A breadcrumb gives information about  the category under which the current page is in a site.  So if the post we are reading is in the category Internet, we will see thanks to the breadcrumb an indication like  Home >> Internet >>Current article Other types of breadcrumbs exist, as the ones related to the path … Continue reading “How to insert breadcrumbs into WordPress with Yoast”

How to remove the left column in Twenty Sixteen

The Twenty Sixteen WordPress theme is composed of three columns. In the left column, you have meta information like author, date, tags and categories. If you want to remove the left column and have a two columns layout, you have to add the following code. Removing the left column has the effect of moving the … Continue reading “How to remove the left column in Twenty Sixteen”