Skip to content

Instantly share code, notes, and snippets.

.rpwe_widget {
margin-bottom: 30px;
}
.rpwe-li {
width: 33.3%;
float: left;
}
.rpwe-title {
@KFleeger
KFleeger / function.php
Created July 15, 2016 19:17
Sticky Navigation for Header Right Menu
//* Sticky Navigation for Header Right Menu
add_action( 'wp_enqueue_scripts', 'hello_pro_add_sticky_nav_script' );
function hello_pro_add_sticky_nav_script() {
global $wp_registered_sidebars;
if ( isset( $wp_registered_sidebars['header-right'] ) ) {
wp_enqueue_script( 'sticky-nav-script', get_stylesheet_directory_uri() . '/js/sticky-nav.js', array('jquery'), '1.0.0' );
}
}
@KFleeger
KFleeger / function.php
Created June 24, 2016 16:04
brandiD footer
//* Customize footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'hello_pro_custom_footer' );
function hello_pro_custom_footer() {
?>
<p>Copyright &copy;2016 &middot; <a href="https://thebrandid.com/product/hello-wordpress-theme/">Hello</a>, a <a href="http://www.studiopress.com/">Genesis Framework</a> <a href="http://wordpress.org/">WordPress</a> theme from <a target="_blank" href="https://thebrandid.com">brandiD</a></p>
<?php
}
@KFleeger
KFleeger / enews.css
Last active September 27, 2016 15:51
Styles to add to a genesis child theme to create a horizontal opt-in for the enews extended plugin.
/*
Enews Plugin
-----------------------------------------------------------------*/
.home-cta .enews p {
width: 50%;
float: left;
clear: none;
font-size: 28px;
margin-right: 4%;
@KFleeger
KFleeger / flexible header
Created March 1, 2016 02:10
Custom Flexible Header for WordPress Genesis
//* Add support for custom flexible header
add_theme_support( 'custom-header', array(
'flex-width' => true,
'width' => 260,
'flex-height' => true,
'height' => 100,
'header-selector' => '.site-title a',
'header-text' => false
) );
@KFleeger
KFleeger / gist:06d8445c767cef149ebb
Created June 2, 2015 13:06
Parallax Background for Rainmaker Landing Page
<head>
<style type="text/css">
.site-container {
float: none;
margin: 0 auto;
width: 100% !important;
max-width: 100% !important;
}
.single-landing_page .content {
background: none !important;
@KFleeger
KFleeger / gist:1447e4781abc7c80f152
Created June 2, 2015 12:49
Internal Styles Area for Rainmaker Landing Page
<head>
<style type="text/css">
Your Custom Styles Will Go Here
</style>
</head>
@KFleeger
KFleeger / gist:e4381df77e4314881041
Created November 17, 2014 15:35
Redirect a WordPress Page to Another URL
// Paste this code in the body of a wordpress page or post.
<html><meta http-equiv="refresh" content="0;url=http://example.com/" /></html>
@KFleeger
KFleeger / keep_format
Last active August 29, 2015 14:09
Genesis Fuction - Keep Formatting for Posts When Using a Content Limit
//Keep formatting tags when pulling posts with a content limit into a widget area, archive, or template
add_filter('get_the_content_limit_allowedtags', 'get_the_content_limit_custom_allowedtags');
function get_the_content_limit_custom_allowedtags()
{
return '<b>,<br>,<em>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<p>'; //add whatever comma seperated tags you want to this string
}
@KFleeger
KFleeger / sample_text
Last active August 29, 2015 14:09
Sample HTML Text to Show Theme Text Styles
<p>This is your body copy text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ut feugiat urna, eu mollis sapien. Morbi vestibulum auctor nulla, lacinia malesuada massa ultricies at. Nunc eu felis id diam gravida adipiscing. Mauris accumsan, erat viverra pellentesque eleifend, tortor elit porttitor risus, id gravida nunc nibh vitae odio. <a href="http://#">This is linked text.</a> Aliquam commodo tempor est, sit amet sollicitudin ante scelerisque quis. <b>Bold text.</b> Pellentesque vitae turpis quis mi luctus imperdiet. Donec enim ante, euismod in lacinia id, venenatis non felis. Donec bibendum dapibus eleifend. <i>Text in italics.</i> Integer iaculis, metus sed euismod malesuada, nisl metus gravida orci, non faucibus nibh mauris quis libero.
</p>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>