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
| # Include your project-specific ignores in this file | |
| # Read about how to use .gitignore: https://help.github.com/articles/ignoring-files | |
| # THEME LEVEL FILES | |
| wp-content/themes/root-inc/vendor | |
| wp-content/themes/root-inc/.config.codekit3 | |
| # Reference Files | |
| wp-content/themes/root-inc/brand-colors.css | |
| #Added gitignore_global to ignore .DS_Store instances | |
| wp-content/themes/root-inc/videos |
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 to remove the Heartbeat (missing) in Query Monitor | |
| */ | |
| add_filter( 'wpe_heartbeat_allowed_pages', function( $pages ) { | |
| global $pagenow; | |
| $pages[] = $pagenow; | |
| return $pages; | |
| }); |
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
| /** | |
| * Some Templates are found to be missing this loop call and the pages return empty | |
| */ | |
| <?php | |
| if (have_posts()) : while (have_posts()) : the_post(); | |
| get_header(); |
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
| <!-- | |
| In this link, use the HTML download attribute to specify that the | |
| target will be downloaded when a user clicks on the hyperlink. | |
| The download attribute is only used if the href attribute is set. | |
| --> | |
| <a class="btn-conversion blue3 d-flex" | |
| href="https://www.rootinc.com/pdfs/Gary_Speaker_Sheet.pdf" | |
| download |
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 | |
| $id_or_title = 12; | |
| $tabindex = true; | |
| gravity_form( $id_or_title, $display_title = false, | |
| $display_description = true, | |
| $display_inactive = false, | |
| $field_values = null, | |
| $ajax = false, | |
| $tabindex, |
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
| /** | |
| * In this example, I wanted to create a list of names of Custom Fields. | |
| */ | |
| const titles = document.querySelectorAll('.row-title'); | |
| for ( const title of titles ) { | |
| // Because it is returned in the browser, we're getting the VM numbering thing in console log | |
| // Experiment with a way to drop these in an array instead. |
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 class="btn-conversion blue3 btn-form" id="form-submit" | |
| href="<?php echo esc_url(get_bloginfo('url') . '/pdfs/whitepapers/How-To-For-Org-Change.pdf'); ?>" | |
| target="_blank"> | |
| <span class="fa-stack fa-lg"> | |
| <i class="fa fa-square fa-stack-2x" aria-hidden="true"></i> | |
| <i class="fa fa-cloud-download fa-stack-1x fa-inverse" aria-hidden="true"></i> | |
| </span> | |
| <span class="conversion-text">Download Now!</span> | |
| </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
| /** | |
| * To display the featured image with the alt tag | |
| * | |
| * @link: https://developer.wordpress.org/reference/functions/get_the_post_thumbnail_url/ | |
| * @author: https://profiles.wordpress.org/thelilmercoder/ | |
| */ | |
| $thumbnail = get_the_post_thumbnail_url(); | |
| if ( $thumbnail ) { |
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
| /** Differences between site URL functions | |
| * | |
| * IMAGES | |
| * | |
| * bloginfo('template_directory'); Returns the wp-content url | |
| * This is the full URL https://[root-domain]/wp-content/themes/[theme-folder]/images/opt-in-2.png | |
| */ | |
| <img src="<?php bloginfo('template_directory'); ?>/images/opt-in-4.png" class="pbl"> |
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
| /** | |
| * THEME ASSETS | |
| * | |
| * Note: 999 is setting late Priority. This is to circumvent issue where ACF code appears before jquery for some dumb reason. | |
| * @priority 999 | |
| */ | |
| add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\assets', 999 ); |