How to disable comments in WordPress

By default, all posts and pages in WordPress allow users to post comments. While some websites will find this feature useful, in most cases comment forms only attract spam bots. Spam is the primary reason to disable comments in WordPress. To block comments, developers can customize Discussion settings, edit the template files or use a […]

How to split lists into columns using CSS

Let’s face it, long ordered or unordered HTML lists don’t look good in your site content. For instance, long content list items will leave too much useless white space on their right side. Sometime they also require a lot of scrolling to reach their end. There’s a simple solution to this problem. Use CSS to […]

How to embed custom stylesheet CSS files into WordPress?

Either if creating your own WordPress theme, a child-theme from it’s parent or editing a theme, you will encounter the need to add your own CSS custom stylesheet. Most probably you will also want to override some styles from the default theme stylesheet. There are several ways to add your own styles and/or override default […]

How to highlight code in Gutenberg editor?

Default WordPress editors were never really developer friendly with their plain text editor interface and no color highlighting. With Gutenberg, the default theme editor improved a lot with syntax highlighting and auto-complete funcion. Unfortunately, writing code in page or post editor is still a painful and slow process. Therefore, the first thing you want to […]