Month: March 2016

Home / 2016 / March
Post

Creating responsive charts with JavaScript

Back in the day when web developers didn't have to care about responsive layouts, life was easier in some cases. For example - charts. There are quite a lot of types of charts and in the beginnings of responsive web, creating responsive charts surely wasn't a trivial task. But nowadays, given that there are thousands of different JavaScript libraries, it is no surprise that there are excellent libraries for charts. One of my favorite is Chart.js. In case you want to use it on WordPress, you can code it manually you can use a WordPress Charts plugin.

Post

Adding WordPress menu item description using nav_menu_item_title()

The answer to how to add description into WordPress menu items is – easy :). All you need to do is extend walker class using nav_menu_item_title() filter which came with WordPress 4.4.  So basically, all we need to do is to add $item->description where appropriate, which means inside the start_el() function which generates the menu link.

Post

Creating front page in Genesis framework with parallax effect

Genesis framework is among the most popular frameworks for rapid WordPress theme development. Whether it is the best one is out of the question – there is no “best” when it comes to development of any kind. What is excellent for one purpose could be completely useless for another purpose. Read my full post published...

Post

Sass Quickstart

First things first – I use SCSS Syntax. Also, you need a compiler – I use NetBeans (Koala is also good). But these are for Windows users just like myself – I have no doubts that for Linux users, there are much more powerful solutions :-).

Post

Creating media queries using Modernizr and jQuery

Modernizr can do lots of things – one of them is the ability to mix media query function with jQuery functions. Although there are other ways to achieve this, even (or especially) within jQuery itself, if using Modernizr for some other things on your website, you can try something like the following: [crayon-5a345d39dc3df325329559/] [crayon-5a345d39dc3e4320820783/] and finally...

Post

Differences between jQuery easings

Easings within jQuery appear as linear and swing only, but if you include jQuery UI into equation, you can get quite a lot of very nice effects. This is where you can find them.

Post

How to add custom CSS class depending on the template

I know that you can achieve the same by using global variables, but this is also one of the ways to add custom class depending on which page template has been loaded (you would add this into functions.php): [crayon-5a345d39dc839618977729/]

Post

How to enable shortcodes in text widgets

This could be one of the shortest tutorials ever, but still, some may find it useful – in order to activate the ability of regular text widgets to render shortcodes, all that needs to be done is the following: [crayon-5a345d39dca85396369084/] You would put this into functions.php or in custom functions plugin. And that’s all. No...