Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Single Product tabs
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/tabs/tabs.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@infocities
infocities / product-image.php
Created August 26, 2021 00:43
Bootstrap 5 Carousel for Woocommerce Product Image
<?php
/**
* Single Product Image
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/product-image.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@infocities
infocities / widget-product-categories.php
Created August 26, 2021 00:50 — forked from doubleedesign/widget-product-categories.php
Override the output of the WooCommerce product categories widget to be a Bootstrap accordion
<?php
/**
* Product Categories Widget
* Modifies the WooCommerce product categories widget to display as a Bootstrap accordion.
*
* @package WooCommerce/Widgets
* @version 2.3.0
*/
defined( 'ABSPATH' ) || exit;
@infocities
infocities / woo-checkout.php
Created August 26, 2021 00:52 — forked from hiranthi/woo-checkout.php
WooCommerce checkout steps
<?php
/**
* Display the checkout steps so the customer knows where they are.
*
* The output uses classes of Bootstrap 4 and the icons of FontAwesome (Free)
**/
function onx_woocommerce_checkout_steps()
{
echo '<nav id="woo-checkout-steps" class="nav nav-pills nav-justified mb-4" role="navigation">';
@infocities
infocities / form-login.php
Created August 26, 2021 00:53 — forked from robbens/form-login.php
Bootstrap 4 login and register form for Woocommerce. This should be placed in "your-theme/woocommerce/myaccount/form-login.php".
<?php
/**
* Login Form
*
* This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-login.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
<?php
/**
* mana functioncust and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package mana
*/
if ( ! function_exists( 'mana_setup' ) ) :
@infocities
infocities / woocommerce-bootstrap.css
Created August 26, 2021 01:01 — forked from LeMiira/woocommerce-bootstrap.css
woocommerce bootstrap conflict
.woocommerce-billing-fields .form-row, .woocommerce-shipping-fields .form-row,.woocommerce form .form-row {
display: block;
}
.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1,.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
max-width: unset;
}
@infocities
infocities / woocommerce-select2-selectwoo-remove
Created August 26, 2021 01:05 — forked from ontiuk/woocommerce-select2-selectwoo-remove
Woocommerce Remove Select2 / SelectWoo
// Add to your theme's functions.php file. De-queues Select2 styles & scripts. Useful to keep Boostrap form control formatting
/**
* Remove Woocommerce Select2 - Pre WC 3.2.1-ish
*/
function woo_dequeue_select2() {
if ( class_exists( 'woocommerce' ) ) {
wp_dequeue_style( 'select2' );
wp_deregister_style( 'select2' );