Skip to content

Instantly share code, notes, and snippets.

@philipgledhill
philipgledhill / Genesis Framework widget areas
Created December 1, 2013 09:10
Genesis Framework widget areas originally provided by Brian Gardner
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'welcome-text',
'name' => __( 'Welcome Text', 'genesis' ),
'description' => __( 'This is the welcome text widget.', 'themename' ),
) );
/** Add the welcome text section */
add_action( 'genesis_before_content_sidebar_wrap', 'custom_welcome_text' );
function custom_welcome_text() {
@philipgledhill
philipgledhill / Genesis Framework widget area CSS
Created December 1, 2013 09:18
Genesis Framework widget area CSS originally provided by Brian Gardner
/* Welcome Text
------------------------------------------------------------ */
.welcome-text {
border-bottom: double #ddd;
border-top: double #ddd;
font-family: 'Lora', serif;
font-size: 30px;
line-height: 1.0;
overflow: hidden;
@philipgledhill
philipgledhill / Conditional tag is home
Created December 1, 2013 09:22
Conditional code used to target home page in WordPress
if ( ! is_home() )
return;
@philipgledhill
philipgledhill / add action Genesis Framework
Created December 1, 2013 09:28
Custom welcome text add action for Genesis Framework tutorial
add_action( 'genesis_before_content_sidebar_wrap', 'custom_welcome_text' );
@philipgledhill
philipgledhill / CSS div with class
Created December 1, 2013 09:33
Adding a CSS div with a class name so it can be styled.
<div class="class-name">Put stuff here</div>
@philipgledhill
philipgledhill / CSS for Simple Hooks Tutorial
Created December 1, 2013 09:37
CSS for Simple Hooks Tutorial
.class-name {
color: white;
background: black;
font-size: 50px;
padding:10px;
}
.class-name p {
text-align: center;
font-size: 50px;
@philipgledhill
philipgledhill / Clear with underline for Genesis Framework
Created December 1, 2013 09:40
Clear with underline for Genesis Framework
<div class="clear-line"></div>
@philipgledhill
philipgledhill / Conditional code used in Simple Hooks Tutorial
Created December 1, 2013 09:46
Conditional code used in Simple Hooks Tutorial
<?php
if ( ( is_home() ) )
{ ?>
//your code goes here...
<?php }
?>
@philipgledhill
philipgledhill / html5_widget_area_code
Created April 21, 2014 06:24
Genesis Framework widget area code for HTML5 themes
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'welcome-text',
'name' => __( 'Welcome Text', 'genesis' ),
'description' => __( 'This is the welcome text widget.', 'themename' ),
) );
/** Add the welcome text section */
add_action( 'genesis_before_content_sidebar_wrap', 'custom_welcome_text' );
function custom_welcome_text() {
@philipgledhill
philipgledhill / Dynamik Website Builder - Nivo Slider border colour
Created May 15, 2014 14:12
Dynamik Website Builder - Nivo Slider border colour
#ez-home-slider-container-wrap .slider-wrapper {
background: #6C7030;
}