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($){ | |
| //time to event | |
| //set new variables when page is loading | |
| var d = new Date(); | |
| var timestamp = d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds(); | |
| var c = 'time';//event category | |
| var a = 'click';//event action | |
| var l = 'time to event: '; //event label | |
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
| <a href="#" class="scrollup" style="display: none;"><i class="fa fa-angle-up active"></i></a> |
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($){ | |
| $('a[href^="#"]').on('click',function(e){ | |
| event.preventDefault(); | |
| console.log('menu click'); | |
| }); | |
| })(jQuery); |
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
| // ========================================================================= | |
| // REMOVE JUNK FROM WORDPRESS HEAD | |
| // ========================================================================= | |
| remove_action('wp_head', 'rsd_link'); // remove really simple discovery link | |
| remove_action('wp_head', 'wp_generator'); // remove wordpress version meta tag | |
| remove_action('wp_head', 'feed_links', 2); // remove rss feed links (make sure you add them in yourself if youre using feedblitz or an rss service) | |
| remove_action('wp_head', 'feed_links_extra', 3); // removes all extra rss feed links | |
| remove_action('wp_head', 'index_rel_link'); // remove link to index page | |
| remove_action('wp_head', 'wlwmanifest_link'); // remove wlwmanifest.xml (needed to support windows live writer) | |
| remove_action('wp_head', 'start_post_rel_link', 10); // remove random post link |
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
| <div class="row inner-form-wrap"> | |
| <div class="form-group"> | |
| <label for="fullname">Full Name</label> | |
| [text* fullname id:fullname class:form-control placeholder "Full Name"] | |
| </div> | |
| <div class="form-group"> | |
| <label for="phone">Phone</label> | |
| [text* phone id:phone class:form-control placeholder "Phone"] | |
| </div> | |
| <div class="form-group"> |
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 | |
| // | |
| $frontpage_id = get_option('page_on_front'); | |
| $phone = get_post_meta($frontpage_id, 'phone', true); | |
| $local_phone_number = get_post_meta($post->ID, 'phone', true); | |
| if (!isset( $_COOKIE["PhoneNumber"] )) { | |
| if ($local_phone_number != null) { | |
| $phone_number = $local_phone_number; |
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 | |
| //define constant var - goes in header.php | |
| define('PHONE_NUMBER', get_post_meta($frontpage_id,'phone', true));?> | |
| //show constant var - goes whereever you need the phone number | |
| <?php echo "<span class='phone'>{PHONE_NUMBER}</span>";?> |
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 | |
| //in this case it will show 3 | |
| function show_items_in_archive($query){ | |
| if($query->is_main_query() ){ | |
| $query->set( 'posts_per_page', 3 ); | |
| } | |
| } | |
| add_action( 'pre_get_posts', 'show_items_in_archive' ); |