This file contains 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 | |
if ( class_exists( 'Jetpack' ) && !Jetpack::is_module_active( 'infinite-scroll' ) ) { | |
the_posts_pagination(); | |
} |
This file contains 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 class="list-item"> | |
... | |
<p class="list-item__excerpt"> | |
<?php echo wp_trim_words( get_the_excerpt(), 25, '...' ); ?> | |
</p> | |
</div> |
This file contains 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
define( 'WPCF7_AUTOP', false ); |
This file contains 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 action=""> | |
<input type="text" name="fname" placeholder="Your First Name"> | |
</form> |
This file contains 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
img:not([alt]), | |
img[alt=""] { | |
outline: 5px solid red; | |
} |
This file contains 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
::-moz-selection { | |
background: #23A8B9; | |
color: #fff; | |
} | |
::selection { | |
background: #23A8B9; | |
color: #fff; | |
} |
This file contains 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 | |
function add_favicon() { | |
$favicon_url = get_stylesheet_directory_uri() . '/assets/images/favicon/favicon-16x16.png'; | |
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />'; | |
} | |
add_action('login_head', 'add_favicon'); | |
add_action('admin_head', 'add_favicon'); |
This file contains 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_type' => array( 'jobs' ), | |
'nopaging' => false, | |
'posts_per_page' => '5', | |
'ignore_sticky_posts' => false, | |
'post__not_in' => array(get_the_ID()) | |
); | |
$query = new WP_Query( $args ); |
This file contains 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 | |
function pine_jetpack_archive_no_related_posts( $options ) { | |
if ( is_post_type_archive( 'product' ) || ( get_post_type() == 'product' && is_single() ) ) { | |
$options['enabled'] = false; | |
} | |
return $options; | |
} | |
add_filter( 'jetpack_relatedposts_filter_options', 'pine_jetpack_archive_no_related_posts' ); |
This file contains 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
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 week" | |
# CSS | |
ExpiresByType text/css "access plus 2 week" | |
# Data interchange | |
ExpiresByType application/json "access plus 0 seconds" |