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
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|svg|js|css|swf)$"> | |
Header set Cache-Control "max-age=2628000, public" | |
</filesMatch> | |
## EXPIRES HEADER CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" |
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
'active_callback' => array( | |
array( | |
array( | |
'setting' => 'setting_name', | |
'operator' => '==', | |
'value' => 'value_goes_here', | |
), | |
array( | |
'setting' => 'setting_name', | |
'operator' => '==', |
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
// Taken from this thread https://wordpress.stackexchange.com/questions/134143/how-can-i-create-a-read-more-link-using-the-excerpt-on-a-static-front-page?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa | |
function new_excerpt_more($more) { | |
return ''; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more', 21 ); | |
function the_excerpt_more_link( $excerpt ){ | |
$post = get_post(); | |
$excerpt .= '... <a href="'. get_permalink($post->ID) . '">continue reading</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
function bbpress_custom_roles() { | |
return array( | |
bbp_get_keymaster_role() => array(// Keymaster | |
'name' => 'Custom Keymaster Role Name', | |
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) | |
), | |
// Moderator | |
bbp_get_moderator_role() => array( | |
'name' => 'Custom Moderator Role Name', | |
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) |
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
'choices' => array( | |
'fonts' => array( | |
'google' => array( | |
'ABeeZee','Abel','Abhaya Libre','Abril Fatface','Aclonica','Acme','Actor','Adamina','Advent Pro','Aguafina Script','Akronim','Aladin','Aldrich','Alef','Alegreya','Alegreya SC','Alegreya Sans','Alegreya Sans SC','Alex Brush','Alfa Slab One','Alice','Alike','Alike Angular','Allan','Allerta','Allerta Stencil','Allura','Almendra','Almendra Display','Almendra SC','Amarante','Amaranth','Amatic SC','Amatica SC','Amethysta','Amiko','Amiri','Amita','Anaheim','Andada','Andika','Angkor','Annie Use Your Telescope','Anonymous Pro','Antic','Antic Didone','Antic Slab','Anton','Arapey','Arbutus','Arbutus Slab','Architects Daughter','Archivo','Archivo Black','Archivo Narrow','Aref Ruqaa','Arima Madurai','Arimo','Arizonia','Armata','Arsenal','Artifika','Arvo','Arya','Asap','Asap Condensed','Asar','Asset','Assistant','Astloch','Asul','Athiti','Atma','Atomic Age','Aubrey','Audiowide','Autour One','Average','Average Sans','Averia Gruesa Libre','Averia Libre','Ave |
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
// Register User Contact Methods | |
function custom_user_contact_methods( $user_contact_method ) { | |
$user_contact_method['facebook'] = __( 'Facebook Username', 'text_domain' ); | |
$user_contact_method['twitter'] = __( 'Twitter Username', 'text_domain' ); | |
return $user_contact_method; | |
} | |
add_filter( 'user_contactmethods', 'custom_user_contact_methods' ); |
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
/************************************** | |
* if, else | |
*************************************/ | |
<?php | |
if ( ) { | |
CONTENT HERE | |
} | |
else { |
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
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent, | |
#customize-theme-controls .customize-pane-child.current-section-parent { | |
-webkit-transform: translateX(-100%); | |
-ms-transform: translateX(-100%); | |
transform: translateX(-100%); | |
} |
NewerOlder