Skip to content

Instantly share code, notes, and snippets.

@IvanBiziuk
IvanBiziuk / Output widget code in header.php
Created January 13, 2018 08:55
Adding widget in any place in Wordpress theme
function wpb_widgets_init() {
register_sidebar( array(
'name' => 'Произвольная область для виджетов в хидере',
'id' => 'custom-header-widget',
'before_widget' => '<div class="chw-widget">',
'after_widget' => '</div>',
'before_title' => '<h2 class="chw-title">',
'after_title' => '</h2>',
) );
#loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999;
@IvanBiziuk
IvanBiziuk / button.sass
Created September 1, 2017 09:10 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600