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 | |
| //* Do NOT include the opening PHP tag | |
| add_action( 'after_switch_theme', 'wpstudio_woocommerce_image_dimensions', 1 ); | |
| function wpstudio_woocommerce_image_dimensions() { | |
| global $pagenow; | |
| if ( ! isset( $_GET['activated'] ) || $pagenow != 'themes.php' ) { | |
| return; | |
| } |
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
| <span class="fa fa-tree"></span><span class="screen-reader-text">Nature</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
| // Load Font Awesome | |
| add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
| function enqueue_font_awesome() { | |
| wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' ); | |
| } |
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
| <i class="fa fa-tree"></i> | |
| <h4>Nature</h4> | |
| Nam pretium turpis et arcu. Pellentesque auctor neque nec urna. Sed consequat, leo eget bibendum.. |
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
| .textwidget i { | |
| background: none; | |
| border: 3px solid #eee; | |
| border-radius: 50%; | |
| box-sizing: content-box; | |
| color: #c7ad7b; | |
| display: inline-block; | |
| font-size: 3.42857rem; | |
| height: 3.42857rem; | |
| padding: 30px; |
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
| /* Genesis Simple Share | |
| --------------------------------------------- */ | |
| /* Centers the icons */ | |
| .share-before, .share-after { | |
| overflow: auto; | |
| text-align: center; | |
| } | |
| .sharrre { |
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
| // Deregister stylesheet Genesis Simple Share | |
| add_action( 'wp_enqueue_scripts', 'wpstudio_deregister_styles' ); | |
| function wpstudio_deregister_styles() { | |
| wp_deregister_style( 'genesis-simple-share-plugin-css' ); | |
| } |
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 | |
| // Don't include above <?php | |
| add_filter( 'genesis_post_comments_shortcode', 'prefix_post_comments_shortcode' ); | |
| /** | |
| * Amend the post comments shortcode to add extra markup for styling. | |
| * | |
| * @author Gary Jones | |
| * @link http://gamajo.com/style-comment-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
| .searchbox { | |
| float: left; | |
| } | |
| .searchbox form { | |
| width: 320px; | |
| } | |
| .searchbox form input { | |
| padding: .8em | |
| } |
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_filter( 'wp_nav_menu_items', 'wpstudio_add_woo_search', 10, 2 ); | |
| /** | |
| * Add WooCommerce cart to primary navigation Genesis | |
| * @author Frank Schrijvers | |
| * @link https://www.wpstud.io/add-woocommerce-cart-to-genesis-navigation/ | |
| */ | |
| function wpstudio_add_woo_search( $menu, $args ) { |