April 17, 2015 in Snippets, Wordpress
We usually need to add interlinking between different pages of a website. WordPress provides a wonderful mechanism to add links between pages. But sometimes we need more control over the links. This shortcode makes it easy to find URL of a page, by it’s ID, Slug, or Title.
April 9, 2015 in Snippets, Wordpress
Custom WordPress Shortcode to show product quantity available in stock. Make sure you have added product quantity in inventory section of product.
November 14, 2014 in CSS, Snippets
Most browsers show a dotted line around links (anchor tags), this is an accessibility feature used for people who are not using mouse. When they are switching between links using tab key (or any other keys) on their keyboard, this dotted outline helps them in finding which particular link is currently selected, and then they […]
January 21, 2013 in Snippets, Wordpress
We sometimes need to add a small arrow to indicate that there is a submenu for a menu item in navigation. There is no direct way of adding a css class to parent menus in wordpress, however i found following piece of code on stack overflow, this is an easy way to add a CSS […]