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_action('wp_footer' , 'rss_widget_links_in_new_window'); | |
| function rss_widget_links_in_new_window() { | |
| ?> | |
| <script type="text/javascript"> | |
| ! function ($) { | |
| //prevents js conflicts | |
| "use strict"; | |
| $(function () { | |
| var extLinksStyle = true; /* set this to false to not display the external icon */ | |
| $('a', '.widget.widget_rss').each( function() { |
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 a separator between menu items in site header */ | |
| .site-header ul.menu > li a { | |
| display: inline-block; | |
| vertical-align: middle; | |
| } | |
| .site-header ul.menu > li:after { | |
| content: "|"; | |
| font-size: 0.9em; | |
| } |
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
| /** | |
| * Check the cart for specific shipping classes, remove Free Shipping if they are present | |
| * | |
| * This code will remove free shipping if a product is in the cart that can not be delivered for free | |
| * Assign a shipping class to those products and add the slug to the $freeshipping_array | |
| * Multiple shipping classes can be added to the array | |
| * | |
| * Add the code to your theme functions.php file | |
| */ | |
| add_filter( 'woocommerce_package_rates', 'unset_free_shipping_when_product_in_cart' , 10, 1 ); |
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 | |
| /** | |
| * Change text strings | |
| * | |
| * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
| */ | |
| function my_text_strings( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Related Products' : | |
| $translated_text = __( 'Check out these related products', 'woocommerce' ); |
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_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); | |
| function woo_new_product_tab( $tabs ) { | |
| // Adds the new tab | |
| $tabs['test_tab'] = array( | |
| 'title' => __( 'New Product Tab', 'woocommerce' ), | |
| 'priority' => 50, | |
| 'callback' => 'woo_new_product_tab_content' | |
| ); |