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 | |
| /* | |
| * http://www.wpbeginner.com/wp-tutorials/how-to-disable-comments-on-wordpress-media-attachments/ | |
| */ | |
| function filter_media_comment_status( $open, $post_id ) { | |
| $post = get_post( $post_id ); | |
| if( $post->post_type == 'attachment' ) { | |
| return false; | |
| } | |
| return $open; |
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 | |
| /** Remember to remove the below featuredslider (note custom name) js stuff in functions.js file | |
| * | |
| _window.load( function() { | |
| if ( body.is( '.slider' ) ) { | |
| $( '.featured-content' ).featuredslider( { | |
| selector: '.featured-content-inner > article', | |
| controlsContainer: '.featured-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
| <?php | |
| /** | |
| * Custom site logo function. | |
| * | |
| * Check if a site logo has been uploaded. If a site logo is present, query the database to retrieve | |
| * the medium sized version of the image. This function prevents excessively large logo images being | |
| * displayed on the frontend. | |
| */ | |
| function twentyfourteen_site_logo() { | |
| $site_logo = get_theme_mod( 'site_logo' ); |
NewerOlder