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
function tbn_update_featured_image_captions() { | |
$caption_counter = 1; | |
$is_done = get_transient( '_breakingnews_caption_transfer' ); | |
if ( $is_done ) { | |
echo '<h2>==> The update process is already done <==</h2>'; | |
return; | |
} |
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="row"> | |
<div class="col-lg-6">First Column</div> | |
<div class="col-lg-6">Second Column</div> | |
</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
/* IE fixes */ | |
.main-navigation li.menu-item-has-children > a:before, | |
.main-navigation li.page_item_has_children > a:before, | |
.main-navigation .sub-menu li.menu-item-has-children > a:before, | |
.main-navigation .children li.page_item_has_children > a:before { | |
display: none; | |
} | |
.main-navigation li.menu-item-has-children > a:after, | |
.main-navigation li.page_item_has_children > a:after { |
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
jQuery( document ).ready(function($){ | |
var offset = 100, | |
speed = 250, | |
duration = 500, | |
scrollButton = $('#topbutton'); | |
$( window ).scroll( function() { | |
if ( $( this ).scrollTop() < offset) { | |
scrollButton.fadeOut( duration ); | |
} else { |
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
/** | |
* Disable the emoji's. | |
*/ | |
function themeslug_disable_emojis() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | |
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); |