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 mytravel_tour_info() { | |
| if ( ! mytravel_is_acf_activated() ) { | |
| return; | |
| } | |
| $days = mytravel_get_field( 'days' ); | |
| $total_people = mytravel_get_field( 'max_people' ); | |
| $min_age = mytravel_get_field( 'min_age' ); | |
| $tour_schedule = mytravel_get_field( 'tour_period' ); | |
| $amenities = mytravel_get_field( 'snapshot' ); |
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 electro_loop_action_buttons() { | |
| ?><div class="action-buttons"><?php | |
| electro_template_loop_product_sku(); | |
| ?></div><?php | |
| } |
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(max-width:767px) { | |
| .atc-wrap { | |
| position: fixed; | |
| z-index: 1080; | |
| right: auto; | |
| bottom: 10px; | |
| left: 16%; | |
| background-color: #fff; | |
| width: 100%; | |
| } |
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
| .single-product .woocommerce-variation-availability p.stock { | |
| display: block; | |
| } | |
| .single-product .product-type-variable .availability { | |
| display: 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
| add_action('wp_footer', function () { | |
| if ( ! is_product() ) return; | |
| ?> | |
| <script> | |
| jQuery(document).ready(function($){ | |
| const $tabsWrapper = $('.woocommerce-tabs'); | |
| const $tabsList = $tabsWrapper.find('ul.tabs'); | |
| $('.woocommerce-Tabs-panel > li[role="presentation"]').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
| .woocommerce-Tabs-panel--description .alignleft { | |
| float: left; | |
| margin: 0.5em 1em 0.5em 0; | |
| } |
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_reorder_tabs', 98 ); | |
| function woo_reorder_tabs( $tabs ) { | |
| if ( isset( $tabs['reviews'] ) ) { | |
| $tabs['reviews']['priority'] = 25; | |
| } | |
| if ( isset( $tabs['accessories'] ) ) { | |
| $tabs['accessories']['priority'] = 30; | |
| } |
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
| .sidebar.js-sidebar .widget_nav_menu li a { | |
| color: inherit; | |
| font-size: inherit; | |
| } | |
| .sidebar { | |
| background-color: #18130c; | |
| background-image: url(assets/img/general/pattern_bg.png); | |
| } |
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 (min-width: 1200px) { | |
| div[data-block-name="woocommerce/product-image-gallery"] .flex-control-thumbs { | |
| grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); | |
| } | |
| } | |
| .woocommerce-product-gallery img.flex-active { | |
| border: 1px solid #000; | |
| box-sizing: border-box; | |
| } |
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
| //TV show excerpt on TV show loop | |
| function masvideos_template_loop_tv_show_body_close() { | |
| global $post; | |
| $short_description = apply_filters( 'masvideos_template_loop_tv_show_short_desc', $post->post_excerpt ); | |
| ?><div class="loop-short-desc-custom" style=" height: 95px; overflow: hidden; margin-bottom: 20px; "> | |
| <?php echo $short_description; ?> | |
| </div> |
NewerOlder