Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
- function my_theme_enqueue_styles() {
- $parent_style = 'parent-style'; // This is 'tyche-style' for the Tyche theme.
- wp_enqueue_style( $parent_style, get_template_directory_uri() . '/assets/css/style.css' );
- wp_enqueue_style( 'child-style',
- get_stylesheet_directory_uri() . './style.css',
- array( $parent_style ),
- wp_get_theme()->get('Version')
- );
- }
- add_action('wp_head', 'hide_sidebar' );
- function hide_sidebar(){
- if(is_cart() || is_checkout()){
- ?><style type="text/css">
- #secondary {
- display: none;
- }
- #primary {
- width:100%;}
- </style><?php
- }
- }
- add_filter( 'woocommerce_checkout_fields', 'webendev_woocommerce_checkout_fields' );
- /**
- * Change Order Notes Placeholder Text - WooCommerce
- *
- */
- function webendev_woocommerce_checkout_fields( $fields ) {
- $fields['order']['order_comments']['placeholder'] = 'Don’t worry about putting property access details here - we will email a property access form upon confirmation of your order.';
- return $fields;
- }
- ?>
- <?php
- remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
- add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 0 );
- // Override theme default specification for product # per row
- function loop_columns() {
- return 4; // 5 products per row
- }
- add_filter('loop_shop_columns', 'loop_columns', 999);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement