One day, I came across a problem for unwrapping anchor tag from its contents. Jquery provides us a unWrap function to unwrap the tag by removing it’s parent tag from the DOM. So there are lot of ways to unwrap a html tag itself using jQuery, overall it depends on your html structure.

Read More

In WordPress, we use plenty of plugins, Some of these plugins require us to place a shortcode in the post, like [favourite_posts]. Shortcode may be a good way to add functionality on our site, but when we deactivate the plugin, the shortcode in the post content don’t get removed.

Read More

Wordpress users use shortcodes in the post content for integrating PHP or other type of code between the content and may be a good way to add functionality to the site. But sometimes we need for removing shortcodes from the post content from a specific page or specific post.

Read More

every website is designed as a responsive so that it can be visited on any resolution window. But browser does not behave same on all the devices. For that, In CSS, we use media query. But using css, we can’t generate html fully compatible with all the devices.

I wanted to post another useful snippet of code for iPad/iPhone detection using javascript

Read More

Sometimes we need to check the existence of a character or sub-string into a string or find the position of a character or sub-string into a string. Javascript provide us a very simple method :

Read More

Sometimes we need to resize colorbox after clicking on sumbit button and we want to show some error or success messages on the same popup window by using javascript or ajax

Read More

[ Page 8 of 10 ]