Year: 2016

Home / 2016
Post

fullPage.js and Advanced Custom Fields integration

fullPage.js is an immensely powerful free jQuery-based JavaScript library, offering (as the name suggests) an ability to create very attractive, dynamic and responsive full-screen scrolling websites. The library was created by Spanish developer Álvaro Trigo and it is being used by some of the world’s top brands. Read the full post here!

by 16. September 2016.2. March 2017.
Post

Setting WooCommerce wholesale prices with excluded tax

This is actually a very easy stuff to do – if you have the need for setting up wholesale prices, but exclude tax from the checkout, you can go with the following plugin (59 usd cost) – WooCommerce Wholesale Prices. You will also need to have the free version installed, along with the premium one.

by 14. September 2016.2. March 2017.
Post

Purging a stubborn WP Engine CSS cache

Here is the scenario – you created that awesome CSS and are dying to get it online. The client also. The website is hosted on WP Engine and is using its famous aggressive caching mechanism. You save the changes into style.css or elsewhere and clear the cache. But you still see the old style.css. You do it again...

by 13. September 2016.2. March 2017.
Post

How to translate theme strings using Polylang

One of the powerful (or let’s say useful) functions that ship with WMPL is ICL_LANGUAGE_CODE, allowing you to translate strings using PHP conditional check. This is particularly useful for translating widgets and some other theme translations. But if you’re not inclined to purchase WMPL, but still need this feature, I only found it within Polylang plugin (when talking about...

Post

How to disable (and replace) Visual Composer lightbox

One of the reasons you might want to replace Visual Composer lightbox (it is using prettyPhoto actually) is because of the mobile view where images opened using the effect are so small that you can hardly see or scroll through them. Several people have asked about this on official Visual Composer website, but they only...

Post

How to separate WordPress loop into sections

In one of my recent projects, the client wanted to create a homepage with several different layouts for groups of posts. Normally this is not a problem – you can just create several loops, reset them, and you can get any imaginable layout. But this was a different pair of boots – the homepage consisted...

Post

How to retrieve featured image URL in WordPress

If (for some reason) you have the need to get the featured image (or post thumbnail) URL, you can do it with wp_get_attachment_image_src() function, for example like this: [crayon-5a345c9f49c3e845891925/]  

Post

How to get commenter ID in WordPress

If you want to output some data (such as biographical info or personal website) for the person who commented on WordPress post or page, you should be able to get the user ID so you could use it for the_author_meta() function.

Post

How to create custom comment walker class in WordPress

There are several walker classes in WordPress – I don’t actually know how many there are because I tend to browse the source code only if I need to change something, just as others I guess :). Regardless, I’m sure that custom navigation walker class is probably the most used and customized WordPress walker class. But...