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 | |
add_action('the_html_tag' , 'elsue_html_tag_schema'); | |
function elsue_html_tag_schema($type) { | |
$schema = 'http://schema.org/'; | |
// Is single post | |
if(is_single()) { | |
$type = "Article"; |
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
@facebook: #3B5998; | |
@twitter: #00ACED; | |
.author-links { | |
text-align: center; | |
a { | |
margin-right: 10px; // Here in-case you wish to add margins | |
padding: 0px; // Here in-case you wish to add padding | |
} | |
li { |
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 | |
add_action('registered_post_type', 'my_registered_post_type_handler', 10, 2); | |
function my_registered_post_type_handler($post_type, $args) { | |
do_action("my_registered_{$post_type}_post_type", $post_type, $args); | |
} | |
// Replace foo with your post type slug | |
add_action('my_registered_foo_post_type', 'my_registered_foo_post_type_handler', 10, 2); | |
function my_registered_foo_post_type_handler($post_type, $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
@media only screen and (max-width: 767px) { | |
.section-filtering .filtering { | |
width: 100% !important; | |
} | |
.section-filtering .isotope .isotope-item { | |
max-width: 100% !important; | |
} | |
.section-filtering .filtering .filtering-image { | |
height: 100% !important; |
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 | |
add_filter('elsue_bits_img_id' , 'sb_dynamic_image'); | |
function sb_dynamic_image($thumb_id) { | |
global $post; | |
if( class_exists('Dynamic_Featured_Image') ) { | |
global $dynamic_featured_image; | |
// Get all dynmaic images | |
$featured_images = $dynamic_featured_image->get_featured_images( $post->ID ); |
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 | |
// Do not copy above php tag if already present in functions.php file | |
add_action('init', 'remove_dms_image_sizes'); | |
function remove_dms_image_sizes() { | |
// Remove the // in front of image sizes to remove | |
// remove_image_size('aspect-thumb'); | |
// remove_image_size( 'basic-thumb'); |
OlderNewer