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 wp_dequeue_google_fonts() { | |
wp_dequeue_style( 'twentysixteen-fonts' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wp_dequeue_google_fonts', 20 ); |
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
//// Unregister Sidebar | |
function remove_some_widgets(){ | |
unregister_sidebar( 'sidebar-1' ); | |
} | |
add_action( 'widgets_init', 'remove_some_widgets', 11 ); |
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
<!-- Website LOGO --> | |
<div class="site-branding"> | |
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png" width="250px" height="90px" alt="The Lexington"> | |
</div> | |
<!-- /Website LOGO --> |
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
<style> | |
@media all and (max-width:768px) { | |
#top-wrapper * { | |
float: none !important; | |
text-align: center !important; | |
padding: 6px ; | |
} | |
} | |
#top-notice { | |
background: #AE9363; |
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
add_filter( 'wp_image_editors', 'change_graphic_lib' ); function change_graphic_lib($array) { return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); } |
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
jQuery('#target').keypress(function() { | |
var textLength = jQuery(this).val().length; | |
if(textLength < 10) { | |
// Do noting | |
} else if (textLength < 13) { | |
jQuery(this).css('font-size', '85%'); | |
} else if (textLength > 16) { | |
jQuery(this).css('font-size', '70%'); |
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() { | |
$('a[href*="#"]:not([href="#"])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html, body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
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 | |
/** | |
* Plugin Name: Smooth Scroll | |
* Plugin URI: http:// | |
* Description: Smooth scroll for anchor links | |
* Version: 1.0.0 | |
* Author: | |
* Author URI: http:// | |
* License: GPL2 | |
*/ |
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
// Fix HTTP Error on img upload | |
add_filter( 'wp_image_editors', 'change_graphic_lib' ); | |
function change_graphic_lib($array) { | |
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); | |
} |
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
<body> | |
<div class="row grid-container"> | |
<div class="columns large-3 medium-6 small-12 grid-item"> | |
<img src="http://placehold.it/300"> | |
</div> | |
<div class="columns large-3 medium-6 small-12 grid-item"> | |
<img src="http://placehold.it/300"> | |
</div> | |
<div class="columns large-3 medium-6 small-12 grid-item"> | |
<img src="http://placehold.it/300"> |
OlderNewer