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
| $('#fleet-gallery').on('init', function(event, slick){ | |
| //Solves the issue of repeating lightbox items on loop | |
| $('.slick-cloned').removeAttr("data-lightbox"); | |
| $('#fleet-gallery img').css('visibility','visible'); | |
| }); |
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 | |
| function wpdev_nav_classes( $classes, $item ) { | |
| if( ( is_post_type_archive( 'fleet' ) || is_singular( 'fleet' ) ) | |
| && $item->title == 'Blog' ){ | |
| $classes = array_diff( $classes, array( 'current_page_parent' ) ); | |
| } | |
| return $classes; | |
| } | |
| add_filter( 'nav_menu_css_class', 'wpdev_nav_classes', 10, 2 ); | |
| ?> |
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
| require_once(ABSPATH.'wp-admin/includes/file.php'); | |
| $uploadedfile = $_FILES['csvtoimport']; | |
| add_filter( 'upload_dir', 'wpse_183245_upload_dir' ); | |
| function wpse_183245_upload_dir( $dirs ) { | |
| $dirs['subdir'] = '/upload'; | |
| $dirs['path'] = $dirs['basedir'] . '/upload'; |
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
| /* SCROLL */ | |
| //Firefox | |
| $(window).bind('DOMMouseScroll', function(e){ | |
| if(e.originalEvent.detail > 0) { | |
| //scroll down | |
| zoomOutTimeline.to(screenToTilt, 10, {scale: 0}); | |
| }else { | |
| //scroll up | |
| zoomOutTimeline.to(screenToTilt, 10, {scale: 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
| YouTube Channel: BG Web Agency: https://www.youtube.com/channel/UC5meqZ4An3SU4-1Wd_sX1Vw | |
| // HTML | |
| <div class="quantity"> | |
| <input type="number" step="<?php echo esc_attr( $step ); ?>" min="<?php echo esc_attr( $min_value ); ?>" max="<?php echo esc_attr( $max_value ); ?>" name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text" size="4" pattern="<?php echo esc_attr( $pattern ); ?>" inputmode="<?php echo esc_attr( $inputmode ); ?>" /> | |
| <span class="inputIcon" data-type="plus"><i class="fa fa-caret-up"></i></span> | |
| <span class="inputIcon" data-type="minus"><i class="fa fa-caret-down"></i></span> | |
| </div> |
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 | |
| add_filter( 'manage_posts_columns', 'wpse240648_manage_posts_columns_index'); | |
| function wpse240648_manage_posts_columns_index($columns) { | |
| $columns['index'] = __( 'Index', 'your-text-domain' ); | |
| return $columns; | |
| } | |
| add_action( 'manage_posts_custom_column', 'wpse240648_manage_posts_custom_column_index', 10, 3 ); | |
| function wpse240648_manage_posts_custom_column_index( $column, $post_id ) { |
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
| /** | |
| * Fix Gravity Form Tabindex Conflicts | |
| */ | |
| add_filter( 'gform_tabindex', 'gform_tabindexer', 10, 2 ); | |
| function gform_tabindexer( $tab_index, $form = false ) { | |
| $starting_index = 1000; // if you need a higher tabindex, update this number | |
| if( $form ) | |
| add_filter( 'gform_tabindex_' . $form['id'], 'gform_tabindexer' ); | |
| return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index; | |
| } |
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 | |
| // Add theme support for custom logo as it is required for WordPress 4.5 onwards | |
| add_theme_support( 'custom-logo', array( | |
| 'width' => 367, | |
| 'height' => 92, | |
| 'flex-width' => true, | |
| 'flex-height' => true | |
| ) | |
| ); | |
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
| functions.php | |
| /** | |
| * WooCommerce - add symbol after price | |
| */ | |
| add_filter( 'woocommerce_get_price_html', 'kd_custom_price_message' ); | |
| add_filter( 'woocommerce_cart_item_price', 'kd_custom_price_message' ); | |
| add_filter( 'woocommerce_cart_item_subtotal', 'kd_custom_price_message' ); // added | |
| add_filter( 'woocommerce_cart_subtotal', 'kd_custom_price_message' ); // added | |
| add_filter( 'woocommerce_cart_total', 'kd_custom_price_message' ); // added |