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
| /* Get a Page’s Title, Content and More With The Handle */ | |
| /* Method 1 */ | |
| {{ pages['about-us'].title }} | |
| {{ pages['about-us'].content }} | |
| /* Method 2 */ | |
| {% assign my_var = "about-us" %} | |
| {{ pages[my_var].title }} | |
| {{ pages[my_var].content }} |
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
| // Display collection image outside of collection page | |
| {% assign collection = collections.my-collection-handle %} | |
| {% if collection.image %} | |
| <img src="{{ collection.image.src | collection_img_url: 'original' }}" alt="{{ collection.image.alt }}" /> | |
| {% 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
| /* Display all products from same Collections in loop */ | |
| <ul> | |
| {% for product in collections.collection-1.products %} | |
| <li{% cycle 'group1': ' style="clear:both;"', '', '', ' class="last"' %}> | |
| <a href="{{ product.url | within: collection }}"> | |
| <img src="{{ product.featured_image.src | product_img_url: "medium" }}" alt="{{ product.featured_image.alt }}" /> | |
| </a> | |
| </li> | |
| {% endfor %} |
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
| <style> | |
| .video { position: relative; } | |
| .video a { | |
| position: absolute; | |
| display: block; | |
| background: url(play.png) no-repeat; | |
| height: 32px; | |
| width: 32px; | |
| top: 28px; |
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 CSS & JS files in WP functions */ | |
| function wp_elevate_zoom_add_scripts() { | |
| // Load jQuery if it isn't already | |
| wp_enqueue_script('jquery'); | |
| // Load custom jQuery | |
| wp_register_script('wpez-min-jquery', get_bloginfo('template_url') . '/elevate-zoom/js/jquery-1.8.3.min.js', array( 'jquery' ), null, true ); | |
| wp_enqueue_script( 'wpez-min-jquery' ); |
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 id="content"> | |
| <?php | |
| $new_query = new WP_Query(); | |
| $new_query->query('post_type=post&showposts=1'.'&paged='.$paged); | |
| ?> | |
| <?php while ($new_query->have_posts()) : $new_query->the_post(); ?> | |
| <?php the_title(); ?> | |
| <?php endwhile; ?> |
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 | |
| /* Genesis Custom Home Page Template */ | |
| function child_grid_loop_helper() { | |
| genesis_grid_loop( array( | |
| 'features' => 2, | |
| 'feature_image_size' => 'child_full', | |
| 'feature_image_class' => 'aligncenter post-image', | |
| 'feature_content_limit' => 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
| <style> | |
| .container { | |
| width:600px; | |
| margin:0 auto; | |
| } | |
| .row { | |
| line-height:24pt; | |
| border: solid 1px black; | |
| } | |
| .row:nth-of-type(2n+1) |