Skip to content

Instantly share code, notes, and snippets.

@About2git
About2git / page_beaverbuilder.php
Last active August 29, 2015 14:15 — forked from srikat/page_beaverbuilder.php
Re-creating Parallax Pro's homepage using Beaver Builder
<?php
/*
Template Name: Beaver Builder Page
*/
//* Force full width content
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
//* Remove the breadcrumb
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
@About2git
About2git / agency-pro.css
Created February 13, 2015 21:30 — forked from srikat/agency-pro.css
How to use a inline logo in Genesis instead of a background image
a img {
margin-bottom: 0;
}
.site-title a img {
vertical-align: top;
}
@About2git
About2git / functions.php
Last active August 29, 2015 14:15 — forked from srikat/functions.php
How to replace Primary Sidebar with a custom sidebar in all single Posts in Genesis
<?php
//* Do NOT include the opening php tag
add_action( 'genesis_after_header', 'sk_change_genesis_primary_sidebar' );
/**
* Show a 'blog-posts' custom widget area in Primary Sidebar location
*
* Context: All single Post pages that belong to a specific 'blog' category.
*
* @author Sridhar Katakam
@About2git
About2git / front-page.php
Last active August 29, 2015 14:15 — forked from srikat/front-page.php
CSS Flip Animation in Genesis
<?php
/**
* Display 3 Posts having Featured images from Featured category and display in columns.
*/
add_action( 'genesis_after_header', 'sk_display_featured_posts' );
function sk_display_featured_posts() {
echo '<div class="home-featured-posts"><div class="wrap">';
@About2git
About2git / functions.php
Created February 13, 2015 21:31 — forked from srikat/functions.php
FacetWP in Genesis
<?php
//* Do NOT include the opening php tag
add_filter( 'genesis_attr_content', 'custom_attributes_content' );
/**
* Add the class needed for FacetWP to main element.
*
* Context: Posts page, all Archives and Search results page.
*
* @author Sridhar Katakam
@About2git
About2git / functions.php
Last active August 29, 2015 14:15 — forked from srikat/functions.php
How to display only the first category that a Post belongs to in Genesis
<?php
//* Do NOT include the opening php tag
add_shortcode( 'post_category', 'sk_show_the_first_category_name_only' );
/**
* Custom shortcode that returns the first hyperlinked category that entry belongs to
*
* @author Sridhar Katakam
* @link http://codex.wordpress.org/Function_Reference/get_the_category#Show_the_First_Category_Name_Only
*/
@About2git
About2git / functions.php
Created February 13, 2015 21:32 — forked from srikat/functions.php
Displaying After Entry widget area on Pages in Genesis
<?php
//* Do NOT include the opening php tag
//* Activate After Entry widget area and display it on single Posts
add_theme_support( 'genesis-after-entry-widget-area' );
@About2git
About2git / functions.php
Last active August 29, 2015 14:15 — forked from srikat/functions.php
How to implement jQuery Stick 'em in WordPress 2.
<?php
//* Do NOT include the opening php tag
//* Enqueue jQuery Stick 'em on non handhelds and single Posts
add_action( 'wp_enqueue_scripts', 'jquery_stickem' );
function jquery_stickem() {
if ( ! ( ! wp_is_mobile() && is_singular( 'post' ) ) ) {
return;
}
@About2git
About2git / functions.php
Last active August 29, 2015 14:15 — forked from srikat/functions.php
How to implement jQuery Stick 'em in WordPress - 1.
<?php
//* Do NOT include the opening php tag
//* Enqueue jQuery Stick 'em on non handhelds
add_action( 'wp_enqueue_scripts', 'jquery_stickem' );
function jquery_stickem() {
if ( wp_is_mobile() ) {
return;
}
@About2git
About2git / functions.php
Last active August 29, 2015 14:15 — forked from srikat/functions.php
Displaying Featured Image above Post Titles regardless of Content Archives settings in Genesis
<?php
//* Do NOT include the opening php tag
add_action( 'genesis_before_entry', 'sk_featured_image_above_title' );
/**
* Display Featured Image above Post Titles regardless of Content Archives settings
*
* Scope: Posts page (Blog)
*
* @author Sridhar Katakam