Read

Category: wordpress

in Woocommerce, wordpress

Quantity box with plus and minus buttons in woocommerce

How to make Quantity box with plus and minus buttons in woocommerce like this: Step 1. Add buttons Go to folder /wp-content/plugins/woocommerce/templates/global, and copy file quantity-input.php to folder your-theme/woocommerce/global/ Edit the file and add two buttons to it. Example: In this code, we have inserted these two buttons: And added custom classes. Step 2. Add […]

in wordpress

The type attribute is unnecessary for javascript resources

To remove the type attribute, simply paste this code into your theme file.

in Woocommerce, wordpress

How to remove tabs from woocommerce product in admin

We know that woocommerce is a widely used plugin to build shopping websites in wordpress. So, when we are adding products we have a section named “Product Data” just below the content editor. In this section we have various tabs like general, inventory, linked products etc. Sometimes we do not use few of them, so […]

in wordpress

Export media files to a zip archive

There is a lot of information on how to export media files to a zip archive on wordpress. There are a bunch of ready-made plugins that will work and solve most of the tasks. But when there is a non-trivial task, then you need to either finish something ready, or make your own. Suppose you […]

in wordpress

Export data to Excel wordpress

In order to export data to Excel, you need to connect PHPExcel.php. This library is needed download, and upload to your theme folder. We connect it with the following code in the functions.php of your theme:

Next we need to call the export function, I used the GET request:

You also need to […]

in wordpress

Delay loading iframe

The iframe tag creates a window that is inside a regular document, and it allows you to load any other independent documents into the specified size. Since it is loaded from an external source, naturally it affects the page loading speed. Alternatively, you can postpone the loading of the iframe window for some time so […]

in Woocommerce, wordpress

Minimum order amount in woocommerce

In order to set the minimum order amount in woocommerce, you need to place the following code in the function.php file of your theme:

in Woocommerce, wordpress

How to change thumbnail image size of WooCommerce cart page

To change thumbnail image size of WooCommerce cart page you need next steps: 1. in function.php create the size you need.

2. in cart.php which should be located in your_tneme\woocommerce\cart find

and in get_image() write the name of your size. In our case it will be like this: get_image(‘custom-thumb’) Checked work on WooCommerce […]

in wordpress

Get custom categories with a hierarchy on the custom post type

Get custom categories with a hierarchy on the custom post type can be done in the following way:

Source: https://clicknathan.com/web-design/hierarchical-custom-taxonomy-terms-unordered-list/

in wordpress

Special tags for plugin contact form 7

Special Mail Tags for Submissions [_remote_ip] — This tag is replaced by the submitter’s IP address. [_user_agent] — This tag is replaced by the submitter’s user agent (browser) information. [_url] — This tag is replaced by the URL of the page in which the contact form is placed. [_date] — This tag is replaced by […]

© Copyright 2014 -  vchuy-develop.com. All rights reserved