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
| /* | |
| This is taken directly from here and modified to fit our needs: https://developer.wordpress.org/themes/basics/including-css-javascript/ | |
| */ | |
| function add_that_css_and_js() { | |
| wp_enqueue_style( 'enqueue-that-css', get_template_directory_uri() . '/css/main.css', array(), '1.0', 'all'); | |
| wp_enqueue_script( 'enqueue-that-js', get_template_directory_uri() . '/js/min/main.min.js', array ( 'jquery' ), 1.0, 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
| cide |
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
| The code part. |
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
| //Thank You Page - CONVERSION TRACKING | |
| function woo_conversion_tracking( $order_id ) { | |
| $order = wc_get_order( $order_id ); | |
| $currency = $order->get_currency(); | |
| $total = $order->get_total(); | |
| $date = $order->get_date_created(); | |
| ?> | |
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 woo_conversion_tracking( $order_id ) { | |
| $order = wc_get_order( $order_id ); | |
| $currency = $order->get_currency(); | |
| $total = $order->get_total(); | |
| $date = $order->get_date_created(); | |
| ?> | |
| <script type="text/javascript"> | |
| gtag('event', 'conversion', { |
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 in apperarance menus this text {{firstaname or username}} | |
| function kk_username_fn( $menu_items ) { | |
| global $this_user; | |
| foreach ( $menu_items as $menu_item ) { | |
| if ( strpos( $menu_item->title, '{{firstname}}' ) !== false ) { | |
| // Get first name, otherwise set it to blank. | |
| if ( $this_user->first_name ) { | |
| $first_name = $this_user->first_name; |
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
| // Set to scroll smooth and -50px | |
| jQuery(document).ready(function() { | |
| jQuery('a[href^="#"]').click(function() { | |
| var target = jQuery(this.hash); | |
| if (target.length == 0) target = jQuery('a[name="' + this.hash.substr(1) + '"]'); | |
| if (target.length == 0) target = jQuery('html'); | |
| jQuery('html, body').animate({ scrollTop: target.offset().top-140 }, 1); | |
| return false; | |
| }); | |
| }); |
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
| .wd-dropdown-menu.wd-design-default .wd-dropdown { | |
| top: -12px; | |
| } |
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
| //mappress drag lock [leaflet] | |
| [mappress mapid="4" dragging="disable" dragging="false"] | |
| //mappress scroll lock [leaflet] | |
| [mappress mapid="4" scrollwheelzoom="false" mouseWdragging="disable" dragging="false"] |
NewerOlder