Skip to content

Instantly share code, notes, and snippets.

View gspice's full-sized avatar

Ginger Coolidge gspice

  • GSC Solutions LLC
  • Lincoln City, Oregon
View GitHub Profile
@gspice
gspice / wap-home-shading
Created January 10, 2015 20:18
Adjust semi-transparent black overlay on the home page image that you can either tone down or get rid of completely.
.home-welcome {
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, .4);
}
.home .search-bar {
background-color: rgb(0, 0, 0);
background: rgba(0, 0, 0, .4);
}
@gspice
gspice / wap-search-home-only
Created January 10, 2015 20:22
wap search bar to appear only on the home page
// Add search widget below header.
add_action( 'genesis_after_header', 'wap_search_bar' );
function wap_search_bar() {
// bail if we're not on the front page
if ! is_front_page() {
return;
}
@gspice
gspice / wap-full-width-increase
Last active August 29, 2015 14:13
wap - widen full page layout
//look for this
.full-width-content .content
//and changed the width from 740px to be something wider. The max width is 1140px.
//what i sent
On your site, when I use Inspect Element, I see this section of code:
/* Site Containers
--------------------------------------------- */
@gspice
gspice / supress-wap-featured-image-per-page.php
Last active August 29, 2015 14:13
WAP inserts the featured image into the content automatically unless otherwise excluded
@gspice
gspice / sorry-no-posts-match-criteria.css
Created January 11, 2015 22:32
Replacing "Sorry, no posts match your criteria" message with something else. Works on archive-listing.php template for AgentPress Listings search results.
/** Change Text Shown When No Posts Are Found */
add_filter('genesis_noposts_text', 'eo_noposts_text');
function eo_noposts_text($text)
{
$text = '<span class="noposts-text">' . __('Your request did not return any results, please check back later.', 'eo') . '</span>';
return $text;
}
//If you want to style the text that is displayed just add some styles in the style-sheet for .noposts-text.
@gspice
gspice / exclude-agent-evolution-profiles.php
Last active August 29, 2015 14:13
Genesis Agent Profiles adds featured image to content already, so then the theme adds it as well. Exclude by adding the CPT to the existing conditional in WAP's functions.php
// Add featured image above single posts.
add_action( 'genesis_before_entry_content', 'wap_featured_image' );
function wap_featured_image() {
// Return early if not a singular or does not have thumbnail
if ( ! is_singular() || ! has_post_thumbnail() || is_singular( 'aeprofiles' ) ) { //or use wap-community
return;
}
echo '<div class="featured-image">';
@gspice
gspice / wap-featured-listings-rows.css
Last active August 29, 2015 14:14
wap increase min-height on features listings widget area to have more than 3 - must be in multiples of 3
@gspice
gspice / pricing-table.html
Last active August 29, 2015 14:15 — forked from studiopress/pricing-table.html
pricing table from Parallax Pro theme demo
<p>Our SEO services are among the very best in the industry.</p>
<div class="pricing-table">
<div class="one-third first">
<h4>Basic - $95</h4>
<ul>
<li>List Item #1</li>
<li>List Item #2</li>
<li>List Item #3</li>
@gspice
gspice / wap-community-add-layouts
Created March 4, 2015 14:48
add layout options to wap-community pages
//add layout support for community pages
add_post_type_support( 'wap-community', 'genesis-layouts' );
// Filter the title with a custom function
add_filter('genesis_seo_title', 'wap_site_title' );
// Add additional custom style to site header
function wap_site_title( $title ) {
// Change $custom_title text as you wish
$custom_title = '<span class="custom-title">WA</span>Estate';
// Don't change the rest of this on down