Skip to content

Instantly share code, notes, and snippets.

View jdelia's full-sized avatar

Jackie D'Elia jdelia

View GitHub Profile
// Colors
$black: #000;
$white: #fff;
$base_text_color: lighten($black, 33);
$base_link_color: #578300;
$base_link_color_hover: darken(#5a4a42, 5);
$base_color: darken(#77a340, 5);
$heading_color: darken(#5a4a42, 5);
$background_color: whitesmoke;
@jdelia
jdelia / genesis-site-title-wrap-filter.php
Created October 13, 2015 14:23
Filter the site title wrap tag if using front page and static home and blog page and not using the blog template - correct issue with Genesis 2.2.3
// Filter the site title wrap tag if using front page and static home and blog page
// and not using the blog template - correct issue with Genesis 2.2.3
add_filter('genesis_site_title_wrap','sjd_filter_site_title');
function sjd_filter_site_title( $wrap ) {
//* Wrap homepage site description in h1 tags if static front page
return is_front_page() && ! is_home() ? 'h1' : $wrap;
}
@jdelia
jdelia / genesis-agent-profiles-extended-custom.php
Last active August 29, 2015 14:22
Genesis Agent Profiles Archive Page - Sort Randomly and Show Up to 999 agents per page
<?php
//* Do NOT include the opening php tag
// Force Sorting on the archive profiles page defaults to random up to 999 per page.
add_action( 'pre_get_posts', 'aeprofiles_change_sort_order_extended_custom', 20 );
function aeprofiles_change_sort_order_extended_custom( $query ) {
.home .search-bar {
padding-top: 350px;
}
@media only screen and (max-width: 1023px) {
.home .search-bar {
padding-top: 250px;
}
}
@jdelia
jdelia / functions.php
Last active August 29, 2015 14:20
Add Link to Widget Area in Toolbar
<?php
//* Do NOT include the opening php tag
// Adds a Widget link to the Toolbar
add_action( 'admin_bar_menu', 'toolbar_link_to_widget_page', 999 );
function toolbar_link_to_widget_page( $wp_admin_bar ) {
$args = array(
'id' => 'my_widget_page',
'title' => 'My Widgets',
'href' => '/wp-admin/widgets.php',
@jdelia
jdelia / style-after.css
Last active August 29, 2015 14:19
Fix for AgentPress Featured Listings on Winning Agent Pro
.home-featured-1,
.home-featured-2,
.home-featured-3,
.home-listings .featured-listings .entry {
float: left;
margin-bottom: 0;
margin-right: 60px;
min-height: 140px;
text-align: center;
width: 340px;
@jdelia
jdelia / genesis-site-title-styles.css
Last active August 29, 2015 14:19
genesis-site-title-styles.css
/* An example of how you can style each word */
/* Uncomment this if you want to remove the space between words
*
.site-title {
font-size: 0;
}
*/
/* Font size for all the span tags */
@jdelia
jdelia / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/* AgentPress Listings
--------------------------------------------- */
.home .listing-wrap:hover .listing-text,
.home .listing-wrap:hover .listing-price,
.home .listing-wrap:hover .listing-address,
.home .listing-wrap:hover .listing-city-state-zip,
.home .listing-wrap:hover .listing-wrap .more-link {
display: none;
}
@jdelia
jdelia / winning-agent-pro-home-welcome-shading
Last active August 29, 2015 14:14
Winning Agent Theme - Shading the home-welcome message
.home-welcome .widget-wrap {
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, .4);
padding: 30px;
}