Skip to content

Instantly share code, notes, and snippets.

View stephangriesel's full-sized avatar
👺

Stephan Griesel stephangriesel

👺
View GitHub Profile
@stephangriesel
stephangriesel / vanilla-js-cheatsheet.md
Created October 27, 2017 15:26 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
/* hide search */
.fa {
display: none;
}
/* hide breadcrumb */
.breadcrumb-nav span, .breadcrumb-nav a {
font-size: 14px;
a>div { display: none; }
a:hover>div { display: block; }
.lunch {margin-left:5px; margin-right:5px;}
.lunch a {display: block;}
<tr>
<td><div class='lunch'><a href="">Lunch Time
<div><img src="lunch_thumbnail.jpg" style="float:left; margin: 4px 4px;" /></div>
</a></div>
</td>
</tr>
// Rename 'United Kingdom' to 'UK Mainland'
add_filter( 'woocommerce_countries', 'rename_united_kingdom' );
function rename_united_kingdom( $countries ) {
$countries['GB'] = 'UK Mainland';
return $countries;
}
section.page_header {
display: none;
}
/* Hide Title */
section.page_header .page_header_inner .p_head_left {
display: none;
}
/* Hide home float */
.f-left {
display: none;
}
/* Hide Title */
section.page_header .page_header_inner .p_head_left {
display: none;
}
/* Hide home float */
.f-left {
display: none;
}
section.page_header .page_header_inner .p_head_left {
display: none;
}
/* main background */
.separator div, body {
background-color: #000;
}
/*container background */
.container {
background: #000;
}