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 | |
| // Remove the opening PHP tag above if your file already includes it | |
| add_filter('gettext', 'translate_text'); | |
| add_filter('ngettext', 'translate_text'); | |
| function translate_text($translated) { | |
| $translated = str_ireplace('Choose an option', 'Select', $translated); | |
| $translated = str_ireplace('Original Text', 'Your Replacment Text', $translated); | |
| return $translated; |
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
| .page-template-template-homepage-php .site-main .columns-6 ul.products li.product-category.product { | |
| width: 15% | |
| } | |
| .page-template-template-homepage-php .site-main .columns-6 ul.products li.product-category.product:first-child { | |
| width: 47.8260869565%; | |
| } | |
| .page-template-template-homepage-php .site-main .columns-6 ul.products li.product-category.product:nth-child(4) { | |
| margin-right: 4.347826087%; | |
| } |
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
| @media only screen and (min-width: 769px) { | |
| .home .woocommerce-wrap .widget_woothemes_features .features .feature:nth-child(4n) { | |
| clear: both; | |
| } | |
| .home .woocommerce-wrap .widget_woothemes_features .features .feature:nth-child(5n) { | |
| clear: none; | |
| } | |
| } |
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
| function marce_hide_storefront_credit_link( $bool ){ | |
| return false; | |
| } | |
| add_filter( 'storefront_credit_link', 'marce_hide_storefront_credit_link', 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
| // Don't copy this opening PHP tag if your file already has one. That breaks things. | |
| <?php | |
| function marce_slider_before_storefront_content () { | |
| // If the template is not the homepage (template-homepage.php), don't display. | |
| if ( ! is_page_template( 'template-homepage.php' ) ) { | |
| return false; | |
| } | |
| // If it is the homepage, add this meta slider shortcode | |
| echo do_shortcode( '[metaslider id=586]'); |
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
| jQuery( function( $ ) { | |
| $(function() { | |
| $pay_in_full = ( $('#wc-option-pay-full') ); | |
| console.log($pay_in_full.val()); | |
| if ( 'no' === $pay_in_full.val() ) { | |
| $( '.wc-deposits-payment-plans' ).hide(); | |
| } | |
| }); | |
| $( '.wc-deposits-wrapper' ) | |
| .on( 'change', 'input[name="wc_deposit_option"]', 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
| <?php | |
| $user_id = get_current_user_id(); | |
| if ( wc_memberships_is_user_active_member( $user_id, 'gold' ) ) { | |
| get_template_part( 'template', 'gold' ); | |
| } else { | |
| echo "You are not allowed to view this content"; | |
| } | |
| ?> |