Adding CSS transition on Bootstrap drop-down menu

If you implemented bootstrap into your WordPress template and want to add CSS transitions to drop-down menu, you can use the following code: [crayon-59960ac5c33f5216738742/] Why media queries? Because you don’t want display:block on hover on the mobile menu (as the hover used for this would double the submenu). As for CSS transitions, you can generate them using any of the online generators,...

How to change the number of documents (items) in WPML Translation management

If you’re translating your website into another language (or languages) using WPML and have lots of of pages, posts, products, etc., then you will likely use WPML Translation management to bulk translate multiple items at once. The current version of WPML (3.1.9.6. as of this article) provides two options – show all documents or 20 documents only.

How to (quickly) debug WordPress white screen

In my experience, there are two kinds of people – people who experienced WordPress white screen and people who will experience it sooner or later. For example, one of my clients had a custom coded theme which worked well. But after WordPress 4.2 appeared (he performed an update), his website turned to blank. The issue was with the function get_avatar_url()...

Changing order of HTML elements using jQuery

If you want to change the order of HTML elements displayed on the page, there are at least two options – the first one is to try CSS display property, namely any of the table-column-group, table-header-group and other values that make HTML elements to behave as table elements. This can perform only basic tasks, though, and normally is useful inside the same HTML...

Glowing HTML button with jQuery

There are certainly better ways to create a glowing button, but here is one simple way I used on one of my clients’ websites. The request was to create a rounded button with glowing effect. In other words, I wasn’t able to use CSS3 infinite animations because none of them were suitable for that. Naturally, I turned to jQuery which...