Category Archive for: "Snippets"

  1. Snippets

    WordPress Display Thumbnail for Post (2 Ways)

    Did you ever want to make WordPress display Thumbnail for post but did not know how to do it? I am going to discuss 2 ways to do this. Just copy this snippet into your theme, wherever you want to display the thumbnail and that should do it.

  2. Snippets

    WordPress: Get all Categories of a post (both parent and children/sub categories)

    Have you ever wondered how to retrieve or get all categories of a post?  This little snippet will help you make WordPress get all Categories of a post (both parent and children/sub categories).

  3. jQuery

    jQuery Scroll To Top Of Page Examples

    If you ever wondered how to scroll to top of page using jQuery, then here is the perfect snippet for you. In this article, I am going to share two snippets that will let you scroll to top of page and even control the speed at which the scrolling takes place, thus allowing you greater […]

  4. Snippets

    Call / Include / Load Latest jQuery Version in WordPress Theme / Plugin

    If you are wondering how to Call / Include / Load Latest jQuery Version in WordPress Theme / Plugin, then look no further! In this article, I am going to share a very simple way that use can use to always load the latest jQuery version either in your Theme or Plugin or both. Read on […]

  5. Snippets

    WordPress: Add Content After Post Automatically

    WordPress Add Content After Post Automatically – If you are a WordPress theme developer, at some point of time or other, you may have wanted to add content after post automatically. Here is a neat snippet that let’s you do exactly that with just few lines of code.

  6. jQuery

    jQuery Center Div Example

    Love jQuery? Need a quick way to center div in window? In this article I am going to show you how to center div using jQuery.

  7. CSS

    Center Div Horizontally Using CSS Example

    In this article, I am going to show you a very simple way to center div using css.

  8. CSS

    Center li in ul using CSS Example

    When working with unordered lists (ul) using HTML & CSS, you might have seen that the ul li stack vertically. But you may want them to stack horizontally and better yet, align them all horizontally so that all the li center in ul. So do you know how to center list item in the unordered […]

  9. jQuery

    jQuery Hide Show Textbox Examples

    Many times it may have happened that you wanted to use jQuery to Hide/Show text boxes when a checkbox is checked or a button is clicked. This article will show you how to use jQuery to Show / Hide Textbox when checkbox is checked.