Skip to content

Instantly share code, notes, and snippets.

View gottalovelattes's full-sized avatar

gottalovelattes gottalovelattes

  • East Coast, USA
View GitHub Profile
<?php
/**
* Genesis Sample.
*
* This file adds functions to the Genesis Sample Theme.
*
* @package Genesis Sample
* @author StudioPress
* @license GPL-2.0+
* @link http://www.studiopress.com/
@gottalovelattes
gottalovelattes / functions.php
Created March 12, 2017 02:33 — forked from srikat/functions.php
Adding Search Form and Simple Social Icons to Primary Navigation in Genesis. http://sridharkatakam.com/adding-search-form-simple-social-icons-primary-navigation-genesis/
genesis_register_sidebar( array(
'id' => 'nav-social-menu',
'name' => __( 'Nav Social Menu', 'your-theme-slug' ),
'description' => __( 'This is the nav social menu section.', 'your-theme-slug' ),
) );
add_filter( 'genesis_nav_items', 'sws_social_icons', 10, 2 );
add_filter( 'wp_nav_menu_items', 'sws_social_icons', 10, 2 );
function sws_social_icons($menu, $args) {
@gottalovelattes
gottalovelattes / functions.php
Created March 12, 2017 01:40
Remove the widget area in the site header with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Remove the header right widget area
unregister_sidebar( 'header-right' );
@gottalovelattes
gottalovelattes / functions.php
Created March 11, 2017 02:26
Hook widget area for Instagram feed before footer.
<?php
//* Do NOT include the opening php tag
//* Add Instagram widget before footer
add_action( 'genesis_before_footer', 'instagram_feed_widget' );
function instagram_feed_widget() {
genesis_widget_area( 'instagram', array(
'before' => '<div class="instagram"><div class="wrap">',
'after' => '</div></div>',
@gottalovelattes
gottalovelattes / functions.php
Created March 11, 2017 02:26
Register widget area for Instagram feed.
<?php
//* Do NOT include the opening php tag
//* Register Instagram widget area
genesis_register_sidebar( array(
'id' => 'instagram',
'name' => __( 'Instagram', 'theme-name' ),
'description' => __( 'This is the instagram widget area.', 'theme-name' ),
) );
@gottalovelattes
gottalovelattes / functions.php
Created March 10, 2017 02:49
Enqueue Dashicons with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Enqueue Dashicons
add_action( 'wp_enqueue_scripts', 'enqueue_dashicons' );
function enqueue_dashicons() {
wp_enqueue_style( 'dashicons' );
}
@gottalovelattes
gottalovelattes / Instagram CSS Gradient BG
Created February 27, 2017 00:19
Instagram CSS gradient background
background: #f09433;
background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
}
/* Pricing Table
--------------------------------------------- */
.pricing-table {
/* font-size: 22px; */
line-height: 1;
}
.pricing-table h4 {
border-bottom: 1px solid #BFB3A7;
/* color: #000; */