-
Hard Refresh / Clear Cache:
To make sure you're seeing the latest updates, clear your cache by holding down the Shift key while you refresh the page. -
Screenshot the Console (Chrome):
Press keyboard shortcut: [Command Option J] ([Control Alt J] for Windows) and take a screenshot of the console that appears at the bottom of your browser window.
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 must be applied to the overflowing element's direct parent. If no parent, wrap the overflowing element in a div.boundary | |
| .boundary{ | |
| width: 100%; | |
| overflow-x: hidden; | |
| } |
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 | |
| /* preg replace removes extra <p> tags from Wordpress' WYSIWYG editor*/ | |
| $hero_headline = preg_replace('/<\/?p>/', '', get_field('hero_headline')); | |
| ?> |
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 rk_get_template_part($template_slug, $args = [], $var_store = false) { | |
| $props = $args; | |
| $template_slug = $template_slug . '.php'; | |
| ob_start(); | |
| include( locate_template($template_slug) ); | |
| $template_output = ob_get_clean(); | |
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 acf_group_has_content($group){ | |
| /* Necessarily checks if a groups sub_fields have content | |
| because the ACF group always returns true even when the | |
| group is empty */ | |
| foreach ($group as $item): | |
| if($item): | |
| return true; | |
| endif; |
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 show_registered_post_types(){ | |
| $args=array( | |
| 'public' => true, | |
| 'exclude_from_search' => false, | |
| '_builtin' => false | |
| ); | |
| $output = 'names'; // names or objects, note names is the default | |
| $operator = 'and'; // 'and' or 'or' |
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
| /* Two step Regex replace to make sure names always break into 2 lines: | |
| 1) Remove all spaces entered by Human error from the end of the Full Name | |
| 2) Replace spaces with <br/> tags. Definitions | |
| (?!^\s) Don't match spaces that come at the beginning of the name | |
| (?!\w+\s) Also don't match a space after the First Name if there is another | |
| word followed by a space after that. This prevents breaking the line for Middle Names. | |
| */ | |
| $title = preg_replace('/\s+$/', '', $title); | |
| $title = preg_replace('/(?!^\s)\s(?!\w+\s)/', '<br/>', $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
| class productsAccordion { | |
| constructor($productsAccordion) { | |
| this.$drawer = $productsAccordion; | |
| this.$header = null; | |
| this.headerHeight = null; | |
| this.expandedSize = null; | |
| } | |
| getGroup(){ |
For swipes/slideshows: cubic-bezier(0.06, 0.46, 0.68, 0.94);
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
| export default class NoFouc { | |
| constructor() { | |
| this.$elements = $('.no-fouc'); | |
| } | |
| removeFoucBlocker(){ | |
| this.$elements.removeClass('.no-fouc'); | |
| } | |
| init() { |