20 Useful jQuery Methods Part -1

20 Useful jQuery Methods jQuery Event methods trigger or attach a function to an event handler for the selected elements. jQuery API jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a […]

Continue Reading

Enqueue a Script -WordPress

wp enqueue scripts

wp enqueue scripts WordPress has an enqueuing system for adding local/remote scripts along with styles to prevent conflicts with plug-ins. Since most users run WordPress with a theme and several plugins, developers are advised to use the correct method of loading scripts into WordPress. Descriptions wp_enqueue_scripts is the proper hook to use when enqueuing items […]

Continue Reading

Post Types in WordPress

Post Types in WordPress

Post Types WordPress can display many different types of content. A single item of such a content is generally called a post, although post is also a specific post type. Internally, all the post types are stored in the same place, in the wp_posts database table, but are differentiated by a column called post_type. WordPress […]

Continue Reading

Create a Drop Down menu in Shopify

Drop Down menu in Shopify

Drop Down menu in Shopify Customers navigate your online store using the links on pages and in menus. Make it easier for your customers to explore your store by customizing the menus and links that appear in your store’s header, footer, or sidebar. The easiest way to add a new menu to your online store […]

Continue Reading

DRAW AN IMAGE ON HTML5 CANVAS?

HTML5 CANVAS

DRAW AN IMAGE ON HTML5 CANVAS Use HTML5 canvas’ drawImage method in JavaScript. Discussion To draw an image using HTML5 Canvas, we can use the drawImage() method which requires an image object and a destination point. The destination point defines the top left corner of the image relative to the top left corner of the […]

Continue Reading

Create a User Defined Function in PHP

User Defined Function in PHP

User Defined Function in PHP A user defined function declaration starts with the word “function”: Syntax

Note: A function name can start with a letter or underscore (not a number). Tip: Give the function a name that reflects what the function does! Function names are NOT case-sensitive. In the example below, we create a […]

Continue Reading

How to make custom Ajax form contact form

ajax contact form

Create an AJAX Contact Form A common feature of many websites is a contact form. Standard contact forms work just fine, but you can make them nicer by using AJAX to submit the form data in the background. In this blog post, you’re going to learn how to create a website contact form that submits […]

Continue Reading

Encode and Decode query string value in php

There are many ways to encode and decode PHP code.From the perspective of site security, there are three PHP functions — str_rot13(), base64_encode(), and gzinflate — that are frequently used to encode and decode strings of PHP code. Encode and decode with base64_encode() & base64_decode() In this tutorial I will be explaining how to encode […]

Continue Reading