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
| <? | |
| //* Remove Page Title | |
| add_action( 'get_header', 'remove_titles_all_single_pages' ); | |
| function remove_titles_all_single_pages() { | |
| if ( is_singular('page') ) { | |
| remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
| remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
| } if (is_singular('post')) { | |
| remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
| } |
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_register_sidebar( array( | |
| 'id' => 'slider-widget', | |
| 'name' => __( 'Slider-Widget', 'lifestyle' ), | |
| 'description' => __( 'This is the widget area for the slider.', 'lifestyle' ), | |
| ) ); | |
| //* Hook the widget to before content | |
| add_action( 'genesis_before_content', 'my-slider', 10 ); |
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
| //* Goes to Dynamik Design - Skins - Your Skin - PHP (AFTER line 45, read bottom comments) | |
| //* Reposition the primary mobile nav inside header, so we can align hamburger and title/logo side by side | |
| remove_action( 'genesis_after_header', 'dynamik_mobile_nav_1', 9 ); | |
| add_action( 'genesis_header', 'dynamik_mobile_nav_1', 9 ); |
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
| // Goes to Dynamik Design - Skins - Your Skin - JS after the comments | |
| jQuery(document).ready(function($) { | |
| //Scroll to top button | |
| $(window).scroll(function(){ | |
| if ($(this).scrollTop() > 200) { | |
| $('.up').fadeIn(); | |
| } else { | |
| $('.up').fadeOut(); | |
| } |
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
| //*Custom Read More link. | |
| add_filter( 'excerpt_more', 'child_read_more_link' ); | |
| add_filter( 'get_the_content_more_link', 'child_read_more_link' ); | |
| add_filter( 'the_content_more_link', 'child_read_more_link' ); | |
| function child_read_more_link() { | |
| return ' ... <br><a class="more-link button blog" href="' . get_permalink() . '" rel="nofollow">Custom Read More</a>'; | |
| } |
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 | |
| $gallery = ea_cf( 'ea_product_gallery' ); | |
| if( $gallery ) { | |
| wp_enqueue_script( 'slick' ); | |
| wp_add_inline_script( 'slick', 'jQuery(document).ready(function($){$(".product-gallery").slick({autoplay: false, arrows: false, dots: true, });});' ); | |
| // output gallery | |
| } |