Advertisement
rhandom

child theme functions.php

Jul 1st, 2015
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <?php
  2.  
  3. function vihv_product_directions_tab() {
  4.     woocommerce_get_template( 'single-product/tabs/directions.php' );
  5. }
  6. function vihv_product_ingredients_tab() {
  7.     woocommerce_get_template( 'single-product/tabs/ingredients.php' );
  8. }
  9. function humbleshop_widgets_init1() {
  10.    
  11.     register_sidebar( array(
  12.         'name' => __( 'Header Weaber form', 'humbleshop' ),
  13.         'id' => 'sidebar-8',
  14.         'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  15.         'after_widget' => '</aside>',
  16.         'before_title' => '<p class="title">',
  17.         'after_title' => '</p>',
  18.     ) );
  19. }
  20. add_action( 'widgets_init', 'humbleshop_widgets_init1' );
  21.  
  22. // Hide SKU on product pages
  23. function sv_remove_product_page_skus( $enabled ) {
  24.     if ( ! is_admin() && is_product() ) {
  25.         return false;
  26.     }
  27.  
  28.     return $enabled;
  29. }
  30. add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );
  31.  
  32.  
  33. require ( get_stylesheet_directory() . '/theme-options.php');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement