Category: Blog

WooCommerce important page url

Below there is some needed woocommerce page url , which are frequently used to develop any woocommerce website. The¬†WooCommercer important page url are   Shop Url $shopUrl = get_permalink( woocommerce_get_page_id( ‘shop’ ) ); Cart Url global $woocommerce; $aUrl = $woocommerce->cart->get_cart_url();   Checkout Url global $woocommerce; $aUrl = $woocommerce->cart->get_checkout_url();   Account Url $aAccountPageId = get_option( ‘woocommerce_myaccount_page_id’ […]

Read More

Bootstrap form validation using javascript

Hi, in the post ‘ Bootstrap form validation using javascript ‘ we are going to learn how to make a validated form on bootstrap fremwork using javascript only without any validator js plugin. To make the form and validate the form use below code. here we are going to use only 3 field the name […]

Read More

How to make load more gallery without reloading page using javascript.

Hi, today we are going to discuss on making a loadmore gallery withour reloading the page using javascript. now lets start step by step, Step 1. first needed a gallery of image or text and need to give unic class name to the thumbnail divs. Step 2. then make the div display none to give […]

Read More

JavaScript Form Validation with email , phone number and name.

Hi, today we are going to see how to make a form validation using javascript , it includes email validation , name valisation, max min value validation, string lenght validation and also phone number validation. We are going to use set custom message as the required field use to show and for that we will […]

Read More

How to make pagination using javascript

Hi, In this post we are going to discuss about how to make a javascript pagination of a table and a unordered list (ul li). For that we have to include 2 javascript library. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js”></script> <script type=”text/javascript” src=”https://cdn.rawgit.com/ddenhartog/jquery-simple-pagination/master/jquery-simple-pagination-plugin.js”></script> the ul or table we want to make pagable, have to keep inside a div with […]

Read More

WoordPress WooCommerce get logout url

In this post we ate going to learn about woocommerce get logout url and lets make that step by step First: get the my account page id by using the code get_option( ‘woocommerce_myaccount_page_id’ ); Second: check if there is any myaccount page id Third: get the parmalink by passing the myaccount page id through the […]

Read More

WordPress WooCommerce get my-account page url

In this post we are going to learn to get myaccount page url of woocommerce , now start step by step First: get the my account page id by using the code get_option( ‘woocommerce_myaccount_page_id’ ); Second: check if there is any myaccount page id Third: get the parmalink by passing the myaccount page id through […]

Read More

How to get featured image url of a post or pages

In this post we are going to learn about wordpress get featured image url now start step by step First get the id of the post or page of which featured image url you want to get by using the code $post->ID Second get the id of the thumbnail image by passing the post id […]

Read More

How to get wordpress page url or link by page or post name

to get the url of a page by its name in wordpress first you need to get the id of the page by page name and then you have to get the page url by id Now to get the id of the page by page name use the below code $page = get_page_by_title( ‘Hellow […]

Read More

How to get WordPress page url by id

to get the url of any post or page in wordpress first you need to get the id of that page or post, and for that go to admin panel and open the post or page for edit and on url you will find ?post=<post id> and get the post or page id from there. […]

Read More