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
| //* Register widget areas | |
| genesis_register_sidebar( array( | |
| 'id' => 'parallax-section-below-header', | |
| 'name' => __( 'Parallax Section Below Header', 'your-theme-slug' ), | |
| 'description' => __( 'This is the parallax section below header.', 'your-theme-slug' ), | |
| ) ); | |
| genesis_register_sidebar( array( | |
| 'id' => 'parallax-section-above-footer', | |
| 'name' => __( 'Parallax Section Above Footer', 'your-theme-slug' ), |
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 | |
| /* | |
| To add Infinite Loop Module provided in Jetpack wordpress Plugin, in Genesis driven site. | |
| */ | |
| /* | |
| Step 1. Install Jetpack Plugin | |
| */ |
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
| .PHONY: install | |
| install: clean wordpress phpunit wp-cli | |
| git submodule init; | |
| @echo "\n\nNOTICE: You may need to configure a MySQL database for your Wordpress installation. Just run:" | |
| @echo " mysql -u root -p;" | |
| @echo " CREATE DATABASE example_site; \n" | |
| wordpress: latest.tar.gz | |
| tar -zxvf latest.tar.gz; |
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
| /** Force full width layout on single posts only*/ | |
| add_filter( 'genesis_pre_get_option_site_layout', 'full_width_layout_single_posts' ); | |
| /** | |
| * @author Brad Dalton | |
| * @link http://wpsites.net/web-design/change-layout-genesis/ | |
| */ | |
| function full_width_layout_single_posts( $opt ) { | |
| if ( is_singular( 'post' ) ) { | |
| $opt = 'full-width-content'; | |
| return $opt; |
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 | |
| $args = array( | |
| 'post_status'=>'publish', | |
| 'post_type'=>array(TribeEvents::POSTTYPE), | |
| 'posts_per_page'=>10, | |
| //order by startdate from newest to oldest | |
| 'meta_key'=>'_EventStartDate', | |
| 'orderby'=>'_EventStartDate', | |
| 'order'=>'DESC', |
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 gist demonstrates how to properly load jQuery within the context of WordPress-targeted JavaScript so that you don't | |
| * have to worry about using things such as `noConflict` or creating your own reference to the jQuery function. | |
| * | |
| * @version 1.0 | |
| */ | |
| (function( $ ) { | |
| "use strict"; | |
| $(function() { |
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
| .form-row.woocomemerce-invalid .chzn-single, | |
| .form-row.woocomemerce-invalid .chzn-drop, | |
| .form-row.woocomemerce-invalid input.input-text, | |
| .form-row.woocomemerce-invalid select { | |
| border:1px solid red; | |
| } | |
| .form-row.woocommerce-validated .chzn-single, | |
| .form-row.woocommerce-validated .chzn-drop, | |
| .form-row.woocommerce-validated input.input-text, | |
| .form-row.woocommerce-validated select { |


