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
| /** | |
| * author Remy Sharp | |
| * url http://remysharp.com/tag/marquee | |
| */ | |
| (function ($) { | |
| $.fn.marquee = function (klass) { | |
| var newMarquee = [], | |
| last = this.length; |
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
| // | |
| // Alerts | |
| // -------------------------------------------------- | |
| // Base styles | |
| // ------------------------- | |
| .alert, | |
| .validation_error, |
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
| <!-- ************************** BOOTSTRAP Carousel w/custom post type ********************** --> | |
| <?php if ( is_home() ) {?> | |
| <div id="myCarousel" class="carousel slide"> | |
| <div class="carousel-inner"> | |
| <?php | |
| $GP_query = array( | |
| 'post_type' => 'slider', | |
| 'posts_per_page' => -1, |
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
| <!-- Flexslider Simple Loop | |
| ================================================== --> | |
| <div class="flexslider"> | |
| <ul class="slides"> | |
| <?php | |
| $the_query = new WP_Query(array( | |
| 'post_type' => 'slider', | |
| 'posts_per_page' => 5, | |
| 'meta_key' => '_GP_order', | |
| 'orderby' => 'meta_value', |
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 the featured image after post title */ | |
| add_action( 'genesis_post_title', 'minimum_portfolio_grid' ); | |
| function minimum_portfolio_grid() { | |
| if ( has_post_thumbnail() ){ | |
| echo '<div class="portfolio-featured-image img-wrap">'; | |
| //thumbnail | |
| echo get_the_post_thumbnail($thumbnail->ID, 'thumbnail' ); | |
| echo '<div class="gallery-item-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
| /* ========================================================================== | |
| WordPress Generated Classes | |
| See: http://codex.wordpress.org/CSS#WordPress_Generated_Classes | |
| ========================================================================== */ | |
| img.aligncenter { | |
| display:block; | |
| margin:0 auto; | |
| } | |
| img.alignleft { |
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 | |
| /* | |
| HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries | |
| http://stackoverflow.com/questions/11564142/wordpress-enqueue-scripts-for-only-if-lt-ie-9 | |
| */ | |
| add_action( 'wp_head', function() { | |
| echo '<!--[if lt IE 9]> | |
| <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.2.0/respond.min.js"></script> | |
| <![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
| <?php | |
| /** | |
| * Conditionally Enqueue Script for IE browsers less than IE 9 | |
| * | |
| * @link http://php.net/manual/en/function.version-compare.php | |
| * @uses wp_check_browser_version() | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'gp_enqueue_lt_ie9' ); | |
| function gp_enqueue_lt_ie9() { | |
| global $is_IE; |
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
| /* ========================================================================== | |
| WordPress Generated IMAGE Classes | |
| MOBILE FIRST | |
| ========================================================================== */ | |
| .aligncenter { | |
| float:none; | |
| margin:0 auto 20px; | |
| display:block; | |
| } |
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 | |
| // REMOVE CONTENT EDITOR on specific page template | |
| add_action( 'admin_init', 'hide_editor' ); | |
| function hide_editor() { | |
| $post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'] ; | |
| if( !isset( $post_id ) ) return; | |
| $template_file = get_post_meta($post_id, '_wp_page_template', true); | |
| if($template_file == 'page-home.php') { |
OlderNewer