Saturday, 25 June 2016

How to Create Custom Plugin?

Hi, Learn here to create Simple form  Plugin. Create 3 files & 1 directory as "images" name. 1. custom_fields_variable.php 2. readme.txt 3. uninstall.php 1> Here, "images" Directory for Upoad Images like, logo. 2> "readme.txt" for description about your Plugin. 3>  Copy following code in "custom_fields_variable.php"  file.       All details are...

Friday, 24 June 2016

Learn Various Anchor tag Usage.

The <a> Anchor tag use for the hyperlink, Always <a> Anchor tag is use for link one page to another page or Same page jump to selected div or section. The most important attribute of <a> tag is the "href", which is used for destination link. Another attribute...

How to Fetch Data from Database of all users in table structre, Open Each user profile & Update it? How to Get Value By passing Variable as id?

Create three files & 1 directory create called "upload". 1. alluserfetchdata.php 2. Adminupdateotherprofile.php 3. Adminupdateotherprofileprocess.php 1> Copy Following code in "alluserfetchdata.php" file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Fetch data</title> </head> <body> <table width="200" border="1">  <tr> <th>No</th> <th>name</th>...

How to Fetch Data from Database as Single person Profile & update Profile data?

Create two files &  1 directory create called "upload". 1. profile.php 2. profileupdateprocess.php 1> Copy Following code in "profile.php" file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Profile (Fetch data)</title> </head> <body> <?php session_start(); $id=$_SESSION['id']; //echo $_SESSION['id']; $con=mysql_connect('localhost','root',''); if(!$con)...

How to create Login Page with Login process?

Create two files. 1. Login.html 2. loginprocess.php 1> Put following code in "Login.html" file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form method="post" action="loginprocess.php"> <table width="200" border="1">  <tr> <td>Username:</td> <td><input type="text" name="uname" required="required"/></td>  </tr>  <tr>...

How to Create Registration Form with file Upload & Store in Database?

First Create 3 Things. 1. registration.html       ( Create file) 2. registrationprocess.php      ( Create file ) 3. upload         ( Create Directory ) 1> Copy Following code in "registration.html" file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;...

How to Create Custom Post Type ( CPT ) in WordPress?

There is Some good plugin available for Custom Post Type. "Custom Post Type UI" Plugin can download from "https://wordpress.org/plugins/custom-post-type-ui/" URL. For Manually Create "Custom Post Type" (CPT) follow the following Steps. 1> Create CUSTOM POST TYPE  (Add Fol1owing code to "functions.php" file or Plugin file) <?php  // Hooking...

Sunday, 19 June 2016

How to Create a Child Theme of WordPress?

There are 2 Good Plugin available for Create Child Theme. 1. One-Click Child Theme 2. Child Theme Configurator You Can Manually create Child Theme as Follow: There are 4 files in child Theme. 1. functions.php 2. rtl.css 3. screenshot.png ( This is Child Theme Image ) 4. style.css 1> Create "functions.php" & Put Following code...

How to change Product page structure in WordPress, WooCommerce?

1> Create folder "woocommerce" in your theme. 2> your product page templte at following address:    "/public_html/wp-content/plugins/woocommerce/templates" 3> download "content-single-product.php" file & put in theme "woocommerce" folder 4> "content-single-product.php" code Under standing below: <?php /** * woocommerce_single_product_summary hook * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_rating -...

How to Remove Tabs in product page in WordPress, WooCommerce?

Open Theme "function.php" then enter following code. add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) {     unset( $tabs['description'] );       // Remove the description tab     unset( $tabs['reviews'] ); // Remove the reviews tab     unset( $tabs['additional_information'] );   // Remove...

How to remove some type sorting in WordPress, WooCommerce?

Open "function.php" file in your theme. then enter following code. // Modify the default WooCommerce orderby dropdown // // Options: menu_order, popularity, rating, date, price, price-desc function my_woocommerce_catalog_orderby( $orderby ) {     unset($orderby["price"]);     unset($orderby["price-desc"]);     return $orderby; } add_filter( "woocommerce_catalog_orderby", "my_woocommerce_catalog_orderby", 20 ); For...

How to set Product image as use original Image in WordPress, WooCommerce?

1> Open WooCommerce Plugin in Plugins > woocommerce 2> Following templete for Product Image code       templates/single-product/product-image.php 3> Following is "Product-image.php" code. <?php /**  * Single Product Image  *  * @author WooThemes  * @package WooCommerce/Templates  * @version     2.0.14  */ if ( ! defined( 'ABSPATH' )...

How to Empty Price display on cart button WordPress, WooCommerce?

Add Following code to "function.php" file function custom_woocommerce_is_purchasable( $purchasable, $product ){     if( $product->get_price() == 0 ||  $product->get_price() == '')         $purchasable = true;     return $purchasable; } add_filter( 'woocommerce_is_purchasable', 'custom_woocommerce_is_purchasable', 10, 2 ); For more Interesting, Useful Article & codes visit IT...

Saturday, 18 June 2016

How to Disable payment Getway in WordPress, WooCommerce Plugin?

Add following code in "function.php" file. Code:- <?php add_filter('woocommerce_cart_needs_payment', '__return_false'); ?> For more Interesting, Useful Article & codes visit IT New Code. ...

How to create Product "Add to Cart" type Button manually in WordPress, WooCommerce?

First create product in WooCommerce. Then Where You want to put button Put following code: Button anchor tag:- ---------------------------------------- <a href="/test_new_guided/?add-to-cart=2526">Add to Bag</a> Add direct 5 product in cart:- ---------------------------------------- <a href="/test_new_guided/?add-to-cart=2526&quantity=5">Add to Bag</a> Here, 2526 is product id. For more Interesting, Useful Article & codes visit IT...

How to Add new tab with contact form, Product form, Product Inquiry Form in Wordpress, WooCommerce?

1>  Install Contact form 7 plugin first.     then create new form in it with following code:  <p>Your Name (required)<br />         [text* your-name] </p>     <p>Your Email (required)<br />         [email* your-email] </p>     <p class="product_subject">Subject<br />  ...

 

Copyright @ 2016 IT New Code | Developing Code | Designing Code.

Designed by: Templateism