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
| /** | |
| * Using entrypoints.json, grab all the scripts that relate to an entrypoint, such as 'app'. | |
| * This is then passed to wp_enqueue_script so all the scripts are automatically added. | |
| * Thanks to wp_enqueue_script preventing de-dupes, we don't need to worry about runtime.js being duplicated when you use this function for multiple entrypoints. | |
| * | |
| * @param String $entryName 'app' or other entrypoints defined in your webpack.config.js | |
| */ | |
| function get_scripts( $entryName ) { | |
| $distDir = '/dist'; | |
| $entryPoints = get_template_directory() . $distDir . '/entrypoints.json'; |
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
| {% macro pagination(pagination, type) %} | |
| {% if pagination and pagination.total > 1 %} | |
| <div class="col-xs-12 hidden-xs hidden-sm"> | |
| <ul class="list-inline c-pagination mb6 mt2"> | |
| {% if pagination.prev %} | |
| <li> | |
| <a href="{{ pagination.prev.link }}" class="{{ pagination.prev.class }}" title="View previous {{ type|default('posts') }}"> | |
| Previous | |
| </a> | |
| </li> |
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_action( 'wp_before_admin_bar_render', 'ba_before_admin_bar_render' ); | |
| function ba_before_admin_bar_render() | |
| { | |
| global $wp_admin_bar; | |
| $wp_admin_bar->remove_menu('customize'); | |
| $wp_admin_bar->remove_menu('comments'); | |
| $wp_admin_bar->remove_menu('wp-logo'); | |
| } |
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
| <ul class="o-list-fit c-nav-primary"> | |
| <li class="o-list-fit__item c-nav-primary__item"> | |
| <a href="#" class="o-list-fit__link c-nav-primary__link">The workshop</a> | |
| </li> | |
| <li class="o-list-fit__item c-nav-primary__item"> | |
| <a href="#" class="o-list-fit__link c-nav-primary__link">2013 Schedule</a> | |
| </li> | |
| <li class="o-list-fit__item c-nav-primary__item"> | |
| <a href="#" class="o-list-fit__link c-nav-primary__link is-current">About CSS Wizardry</a> | |
| </li> |
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="wrapper"> | |
| <ul class="main-nav"> | |
| <li class="main-nav__item"><a href="#" class="main-nav__link">The Workshop</a></li> | |
| <li class="main-nav__item"><a href="#" class="main-nav__link">2015 Schedule</a></li> | |
| <li class="main-nav__item"><a href="#" class="main-nav__link">About Jon</a></li> | |
| <li class="main-nav__item"><a href="#" class="main-nav__link">Contact</a></li> | |
| </ul> | |
| </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
| // Place this in your functions.php or add this plugin https://wordpress.org/plugins/disable-emojis/ | |
| /** | |
| * Disable the emoji's | |
| */ | |
| function disable_emojis() { | |
| remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
| remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
| remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
| remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
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
| <table> | |
| <tr> | |
| <td>1</td> | |
| </tr> | |
| <tr> | |
| <td>2</td> | |
| </tr> | |
| <tr> | |
| <td>3</td> | |
| </tr> |
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
| <img src="/img/image1.png" data-src2x="auto" /> | |
| <img src="/img/image2.png" data-src2x="/img/image2-2x.png" /> |
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="header"> | |
| <div class="header_logo"> | |
| Logo | |
| </div> | |
| </div> |
NewerOlder