This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //woocommerce featured products | |
| //来自官方主题 wootique. | |
| //CSS 样式请自己定义 | |
| //或者采用以下短代码函数 | |
| // <?php echo do_shortcode( '[featured_products per_page="12" columns="4"]' ); ?> | |
| <div id="featured-products" class="<?php if ( get_option( 'woo_featured_product_style' ) == 'slider' ) { echo 'fp-slider'; } ?>"> | |
| <h2><?php _e( 'Featured Products', 'woothemes' ); ?></h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //woocommerce featured products | |
| //来自官方主题 wootique. | |
| //CSS 样式请自己定义 | |
| //或者采用以下短代码函数 | |
| // <?php echo do_shortcode( '[featured_products per_page="12" columns="4"]' ); ?> | |
| <div id="featured-products" class="<?php if ( get_option( 'woo_featured_product_style' ) == 'slider' ) { echo 'fp-slider'; } ?>"> | |
| <h2><?php _e( 'Featured Products', 'woothemes' ); ?></h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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">'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * mana functioncust and definitions. | |
| * | |
| * @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
| * | |
| * @package mana | |
| */ | |
| if ( ! function_exists( 'mana_setup' ) ) : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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' ); |