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_wc_product_page_title() { | |
| $total = wc_get_loop_prop( 'total' ); | |
| if ( is_shop() || is_product_category() || is_tax( 'product_label' ) || is_tax( get_object_taxonomies( 'product' ) ) ) { | |
| $page_title = woocommerce_page_title( false ); | |
| $title = str_replace( 'product-format-', '', $page_title ); | |
| } else { | |
| $title = get_the_title(); | |
| } | |
| ?> |
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
| .handheld-header-v2 .handheld-header-links>ul li>a::before, | |
| .handheld-header-v2 .handheld-header-links i, | |
| button.navbar-toggler.navbar-toggle-hamburger i { | |
| color: #fff; | |
| } |
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 woocommerce_template_loop_product_title() { | |
| echo '<h3 class="' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '">' . get_the_title() . '</h3>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| } | |
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: 767.98px) { | |
| .deal-products-carousel { | |
| margin-bottom: 0; | |
| padding-bottom: 10px; | |
| } | |
| } |
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_output_archive_wrapper() { | |
| $sidebar = mytravel_get_archive_sidebar(); | |
| if ( ! class_exists( 'MAS_Travels' ) ) { | |
| if ( is_product() ) { | |
| $full_width_class = ' col-xl-9 mx-auto pb-5 pb-lg-0'; | |
| } else { | |
| $full_width_class = ' col-lg-12 col-xl-12 order-1 order-lg-2 pb-5 pb-lg-0'; | |
| } | |
| } else { | |
| $full_width_class = ' col-lg-12 col-xl-12 order-1 order-lg-2 pb-5 pb-lg-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_action( 'after_setup_theme', function() { | |
| remove_action( 'cartzilla_footer_after', 'woocommerce_output_all_notices', 100 ); | |
| add_action( 'cartzilla_footer_before', 'woocommerce_output_all_notices', 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
| ul.wp-block-navigation__submenu-container.has-text-color.has-secondary-color.has-background.has-white-background-color.wp-block-navigation-submenu > li { | |
| border-radius: 10px; | |
| } | |
| header .wp-block-group.navigation-bar.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained { | |
| position: static; | |
| } |
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( 'get_terms', 'electro_preserve_category_slug_order', 10, 4 ); | |
| function electro_preserve_category_slug_order( $terms, $taxonomies, $args, $term_query ) { | |
| if ( | |
| is_admin() | |
| || empty( $args['include'] ) | |
| || ! in_array( 'product_cat', (array) $taxonomies, true ) | |
| ) { | |
| return $terms; | |
| } |
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 vodi_toggle_single_movie_hooks() { | |
| $style = vodi_get_single_movie_style(); | |
| if ( $style !== 'v4' && $style !== 'v3' ) { | |
| add_action( 'masvideos_before_single_movie_summary', 'vodi_template_single_movie_player_container_wrap_open', 1 ); | |
| add_action( 'masvideos_after_single_movie_summary', 'vodi_template_single_movie_player_container_wrap_close', 10 ); | |
| } | |
| if( $style === 'v7' ) { | |
| remove_filter( 'masvideos_related_movies_default_args', 'vodi_related_movies_default_args' ); |
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( 'woocommerce_product_meta_start', 'add_product_id_to_single_meta' ); | |
| function add_product_id_to_single_meta() { | |
| global $product; | |
| if ( ! $product ) { | |
| return; | |
| } | |
| echo '<span class="product-id">Product ID: ' . esc_html( $product->get_id() ) . '</span>'; | |
| } |
NewerOlder