Skip to content

Instantly share code, notes, and snippets.

.has-header-image .custom-header-media img, .has-header-video .custom-header-media video, .has-header-video .custom-header-media iframe, .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img {
height: 66% !important;
object-fit: fill !important;
width: 100%;
max-height: 100% !important;
display: block !important;
position: relative !important;
}
#wp-custom-header {
jQuery(document).ready(function($){
var offset = 100;
var speed = 250;
var duration = 500;
$(window).scroll(function(){
if ($(this).scrollTop() < offset) {
$('.topbutton') .fadeOut(duration);
} else {
$('.topbutton') .fadeIn(duration);
}
function twentyseventeen_widgets_init() {
register_sidebar( array(
'name' => __( 'Main Sidebar', 'twentyseventeen' ),
'id' => 'sidebar-1',
'description' => __( 'The main sidebar appears on the right on each page except the front page template', 'twentyseventeen' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div>
<?php endif; ?>
button, input[type=”button”], input[type=”submit”] {
background-color: darkred !important;
}
.widget li a:hover {
box-shadow: none !important;
color: darkred !important;
}
.widget li a {
color: darkblue !important;
font-family: cursive !important;
font-size: 14px !important;
}
.widget-title {
text-align: center;
background: lightgrey;
padding: 5% !important;
margin-bottom: 0px !important;
}
.widget-title {
font-size: 15px !important;
color: darkred !important;
font-family: cursive !important;
}
#colophon {
background: darkred;
}
#colophon * {
color: white !important;
list-style: none !important;
border: none !important;
box-shadow: none !important;
}