How to change href value using jQuery

If you have a situation where you would like to change href atribute (URL, that is), but can’t access the code directly, you can definitely try using jQuery prop():

So all you need to do is target <a> element within container and this should do the trick.  

How to center HTML element with absolute positioning

Believe it or not, something like this will do:

You can also center the content using text-align. Now as for width, some say that it is required, but in many cases I didn’t see any difference (I guess this is dependent on the browser). And you’re encouraged to add max-width combined with width:100% values.

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 […]

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 […]