Woocommerce to add custom shipping

wordpress

You can add custom shipping or fees on your woocommerce cart using below code.
make your additional charge add in eCommerce cart page add in total value based on cart or based on per product.
just add below code in your function.php file and see magic in cart page.

 

Read More

Contact form 7 data move to third party form

wordpress

You can post your contact form 7 data to third party form. add below code in function.php.  and add js in your js file. in js just change your id and class as per your requirement.

Third party form submition

when you use below code default contact form7 thankyou message not working so you need to java script to settimout() to add custom message using given script.

 

Read More

Remove css and script on specific wordpress page

wordpress

On your wordpress blog you have multiple style and script from plugin or them but you have no need to display all style and script on all page you can follow below step to  dequ.

you can just fien enque script name and dequeu it on specific page.

Read More

Woocommerce to hide specific category post on your shop page

wordpress

When you make shop and you have lot of produc and you need to hide some product from all list you just add below code in function.php to see magic.

Add category slug into array and you can add multiple category also like array(‘child1′,’child2′,’….’)

Read More

Remove auto p tag from image in content

wordpress

When you are add image in wordpress content and view on front side at a time wordpress add “<p>” tag on image.
you can remove unwanted <p> tag from all image in content using below function.

you just coppy below code on your function.php file.

Read More

Share post and page using ajax or static path

wphtml

Use below code to add button using ajax or static link from codding to share your post on social site.

Read More

Remove pagination from taxonomy and view all post

wordpress

When you create taxonomy and assign it to any post and view it on taxonomy page. On taxonomy page display default pagination and display only 3 or 4 post but you need to display all post on same page. Use below code to show all post on related taxonomy page.

Read More

Activate wordpress shortcode in text widget

wordpress, wphtml

When you are working with text widget and you can add any short code there it is not working in default widget text. so we have found solution of sidebar widget working with short code.
Just one step to use shortcode in sidbat text widget.

Add below code on your them function.php file and you are able to working shortcode and script in sidebar widget.

Read More

Worpress to Create Simple Shortcode

wordpress

Any buddy can create wordpress shortcode easily its easiy. you just follow below steps to create short code on your wordpress site to enjoy.

Add given short code in your editor add php code into function.php

[POSTDATE]

 

Read More

WordPress to get all terms list from custom taxonomy

wordpress

You can get all term list from your custom texonomy. you can return result as a object.

Read More