Skip to content

Instantly share code, notes, and snippets.

View SusanRamsey's full-sized avatar

SusanRamsey

View GitHub Profile
@SusanRamsey
SusanRamsey / pretty-theme-front-page
Created August 25, 2017 00:33
Pretty Theme Front Page without widgets on subsequent pages...
<?php
/**
* This file adds the Home Page to the Pretty Theme.
*
* @author Lindsey Riel
* @package Pretty
*/
//* Force full-width-content layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
@SusanRamsey
SusanRamsey / new-blog-template-one-category
Last active August 23, 2017 13:41
Add a New Template to display posts from one category
<?php
/**
* Template Name: Daily Template
* Description: Used as a page template to show page contents, followed by a loop
* through the "Daily" category
*/
@SusanRamsey
SusanRamsey / front-page-3-thin-width
Created August 21, 2017 21:37
Maker Pro Theme Front Page 3 widget setup
<div class="one-third first">
<ul class="serif-list">
<li><a href="maker/about">About</a></li>
<li><a href="maker/about">What We Do</a></li>
<li><a href="maker/about">Blog</a></li>
</ul>
</div>
<div class="two-thirds">
This is an example of a WordPress text widget, you could edit this to put information so readers know where you are coming you. You can create as many text widgets, like this one, as you like and manage all of your content inside of WordPress. This is an example of a WordPress text widget.
@SusanRamsey
SusanRamsey / front-page-1-thin-width
Created August 21, 2017 21:33
Maker Pro Theme Front Page Setup - Front Page One
<p class="intro">A Genesis theme created with an intense focus on readability and usability.</p>
<a class="button" href="http://my.studiopress.com/themes/maker" target="_blank">Buy Maker Pro</a>
@SusanRamsey
SusanRamsey / 1152 Grid System
Created March 14, 2016 17:53
This is the page for the 1152 Grid System
<div style="float:left;margin-right:4.166666666%;width:65.277777777%">
<p style="background-color: #1e1e1e;color: #fff;padding: 24px 0;text-align: center">Content (752px)</p>
</div>
<div style="float:left;width:30.555555555%">
<p style="background-color: #1e1e1e;color: #fff;padding: 24px 0;text-align: center">Sidebar (352px)</p>
</div>
<div class="clear"></div>
<div style="float:left;margin-right:4.166666666%;width:30.555555555%">
@SusanRamsey
SusanRamsey / Fun Site Credits
Created February 18, 2015 23:58
Modify Fun Site Credits
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
$creds = '[footer_copyright] &middot; Fun Genesis WordPress Theme by, <a href="http://prettydarncute.com">Pretty Darn Cute Design</a>';
return $creds;
}
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
$creds = '[footer_copyright] &middot; Fun Genesis WordPress Theme by, <a href="http://prettydarncute.com">Pretty Darn Cute Design</a>';
return $creds;
}
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
$creds = '[footer_copyright] &middot; Fun Genesis WordPress Theme by, <a href="http://prettydarncute.com">Pretty Darn Cute Design</a>';
return $creds;
}
@SusanRamsey
SusanRamsey / NoHeader
Created June 24, 2014 02:18
If you wish to display the Modern Blogger Pro theme without a header on one or more pages, use this Gist
<?php
/*
Template Name: Page No Header
*/
//***Add Custom Body Class**/
add_filter( 'body_class', 'no_header_body_class' );
function no_header_body_class( $classes ) {
$classes[] = 'page-no-header';
return $classes;
@SusanRamsey
SusanRamsey / Center Align Featured Image
Created June 2, 2014 02:14
Code to Center Align the Featured image in the Genesis child themes