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
| { | |
| "$schema": "https://schemas.wp.org/trunk/block.json", | |
| "apiVersion": 3, | |
| "name": "interactivity/key-test", | |
| "version": "0.1.0", | |
| "title": "Key Test", | |
| "category": "widgets", | |
| "icon": "filter", | |
| "description": "Key Test", | |
| "supports": { |
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
| $capabilities = array( | |
| 'manage_terms' => false, | |
| 'edit_terms' => false, | |
| 'delete_terms' => false, | |
| 'assign_terms' => 'edit_posts', | |
| ); | |
| $args = array( | |
| 'capabilities' => $capabilities, | |
| ); |
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 | |
| // add ie conditional html5 shim to header | |
| function _s_add_ie_html5_shim () { | |
| echo '<!--[if lt IE 9]>'; | |
| echo '<script src="' . get_template_directory_uri() . '/js/html5.js"></script>'; | |
| echo '<![endif]-->'; | |
| } | |
| add_action('wp_head', '_s_add_ie_html5_shim'); |
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 custom_post_thumbnail_html( $html ) { | |
| $html = '<div class="featured-image">' . $html . '</div>'; | |
| return $html; | |
| } | |
| add_filter( 'post_thumbnail_html', 'custom_post_thumbnail_html' ); |
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^=tel]{ color:#F00; text-decoration:none;} |
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
| if( $( window ).width() < 768 ){ | |
| // Do Something Here; | |
| }else{ | |
| // Do Something Else Here; | |
| } |
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 | |
| if ( has_action( 'init', 'custom_plugin_code' ) ) { | |
| remove_action( 'init', 'custom_plugin_code' ); | |
| add_action( 'init', 'my_content_code' ); | |
| } | |
| ?> |
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
| <footer> | |
| <?php custom_footer();?> | |
| </footer> |
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
| h1.logo { | |
| width: 160px; | |
| height: 65px; | |
| background: url(img.png); | |
| text-indent: 100%; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| margin: 0 0 50px 0; | |
| } |
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 | |
| if ( has_action( 'init', 'custom_plugin_code' ) ) { | |
| remove_action( 'init', 'custom_plugin_code' ); | |
| add_action( 'init', 'my_content_code' ); | |
| } | |
| ?> |
NewerOlder