Smooth scrolling between sections of Web page using jQuery

This jQuery codehelps you add smooth SCROLL animation when you click to Go To link in your web page. I am using .animate jQuery function in following code. In this tutorial you will learn how you can create an animated scroll to top or any element with jQuery. Create Button or Link First we need… Continue reading Smooth scrolling between sections of Web page using jQuery

Create random strings in PHP

I made a PHP function which returns a random string using Alphabets [a to z] and [A to Z], Numbers [0 to 9]. It is very easy to use and can be easily modified.

How to add metaboxes for custom post types – WordPress

Here In this article, You will know how to add metaboxes for Custom posts in write screen inside WordPress admin section. WordPress provides some functions to add a section where you can manage your additional content of post. In this example, I am adding a metabox as name “Images” under my custom post (lets consider post type is… Continue reading How to add metaboxes for custom post types – WordPress

Add a new style to your WordPress Comment Form

Apply additional Style in WordPress Comment Form In this trick, You get many name of classes where you can add additional style/CSS to override default styling of Comment form. WordPress allows you to add CSS to get new look of Comment section in posts/pages. The WordPress comment form is generated using the function <?php comment_form();… Continue reading Add a new style to your WordPress Comment Form

Easy way to show author details in WordPress

The image that shows for the author comes from the email address set for that user which goes to a corresponding Gravatar. The display name and bio come from the User settings area in the Admin.

How to add Category Name as class(s) in body tag

The body_class wordpress filter is nice for adding a lots of classes to the body tag that have information about what kind of page is currently being displayed. Probably for styling purposes. But for whatever reason, it doesn’t include a class for the current category (or categories) for a single post. This following code adds all… Continue reading How to add Category Name as class(s) in body tag

Get URL parameters using jQuery

jQuery code snippet to get the dynamic variables stored in the url as parameters and store them as JavaScript variables ready for use with your scripts. Used differently to Hash Url’s as the world turns to dynamic web apps. Thus things like Decoding URL Strings will be ever popular for years to come.

Published
Categorized as JQuery