I was using jQuery UI range slider and it was working on desktop very well but my website was responsive and working very well on touche devices. But jQuery UI sliders on touch devices appear to be incompatible when viewed on Ipad and Iphone. So I googled on this issue and found a solution which am explaining here
Author » K K Agrawal
Loop in wordpress
In every programming or script language, loops structure has its own importance. Generally Wordpress follows PHP. But wordpress also has some specific ways to achieve loops functionality.
jQuery Ajax load() method
The jQuery AJAX load() method is a very simple and powerful jQuery AJAX method. It loads data from the server and place the returned HTML into the matched element.
jQuery Ajax
Nowadays IT developers is fan of using Ajax due to requirement of time and rendering HTML without page refreshing. Mainly It works on asynchronous mode but we can use it in synchronous mode also.
Getting top parent category
Someday before I got a query for getting top parent category of a post.
Query was as following: I have a post, the post is in 3 categories. The category hierarchy is like so: Fashion => Men => Shoes
WordPress – Shortcodes in custom widget
Few days before, I developed a custom widget as per requirement and in that I was using textbox and textarea for inputting data. I was using HTML tags and Shortcodes in custom widget but Problem was that short-codes rendering out as text.
Cookies in javascript
For years, in web technology,we need to store data on the client side. Before the advent of HTML5 and its new mechanisms, every developer used cookies to achieve this goal. Unfortunately, working with cookies in JavaScript can cause a lot of headaches. This article discusses what cookies are, and how to use.
Getting user info after sign in from wp_signon function
I use wp_signon() and it returns a user, not an error. However when I do is_user_logged_in() it returns false.
I am trying to get current user info by using get_currentuserinfo() and wp_get_current_user()
WordPress custom breadcrumbs without plugin
Breadcrumbs are the important part of every website for easy navigation. Here is a simple WordPress custom breadcrumbs without plugin code which you can copy paste and paste to `functions.php` file of your active theme.
More ever you will also find some easily configurable options to modify breadcrumbs to match your site’s look in this WordPress custom breadcrumbs.
resize iframe height according to content
To resize iframe height according to content, we can use javascript or jQuery. We just need to apply code on the iframe load event, so that content is loaded and height can be get at that time