How to add jQuery (or JS…) script on specific WordPress page

Let’s say that you want to execute some jQuery script on a specific WordPress page – I had this case where I had to change the order of several HTML elements on a specific page, but as the website was using some sort of visual editor which adds the same classes for blocks of the …

How to add jQuery (or JS…) script on specific WordPress page Read More »

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, …

Changing order of HTML elements using jQuery Read More »

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 …

How to (quickly) debug WordPress white screen Read More »

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

in WMPL, WordPresstags WMPL, wordpress 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 – …

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

Functions.php as a plugin

An idea and full explanation (by Justin Tadlock). <?php /** * Plugin Name: My Custom Functions * Plugin URI: http://yoursite.com * Description: This is an awesome custom plugin with functionality that I’d like to keep when switching things. * Author: Your Name * Author URI: http://yoursite.com * Version: 0.1.0 */   /* Place custom code …

Functions.php as a plugin Read More »

How to edit submission fields in Listify WordPress theme

If you want to edit submission fields on Listify WordPress theme (these are the fields that appear on Submit Listing page), all you need to to is to use filters. Filters are used for making changes on both frontend and backend. For example, let’s change the “Title” to “Company Name”, and for another example, make …

How to edit submission fields in Listify WordPress theme Read More »

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: @media (min-width: 768px) { .dropdown .dropdown-menu{ display: block; opacity:0; -webkit-transition: all 200ms ease-in; -moz-transition: all 200ms ease-in; -ms-transition: all 200ms ease-in; -o-transition: all 200ms ease-in; transition: all 200ms ease-in; } .dropdown:hover .dropdown-menu …

Adding CSS transition on Bootstrap drop-down menu Read More »