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 […]
Create a 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 […]
DRAW AN IMAGE ON 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 […]
Create a User Defined Function in PHP
User Defined Function in PHP A user defined function declaration starts with the word “function”: Syntax
1 2 3 |
function functionName() { code to be executed; } |
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 […]
How to make custom Ajax form 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 […]
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 […]
How to Create a Custom Menu in WordPress
A. To get started creating a custom menu, log in to your WordPress site and click to expand the Appearance menu on the left side of the WordPress Dashboard.
B. Click on the Menus link in the Appearance menu. You’ll now see the Menus editor page.