Skip to content

Instantly share code, notes, and snippets.

Avatar

Brad Dalton braddalton

View GitHub Profile
View breadcrumbs.php
$this->args = array(
'home' => __( 'Home', 'genesis' ),
'sep' =>
'list_sep' => ', ',
'prefix' => '<div class="breadcrumb">',
'suffix' => '</div>',
'heirarchial_attachments' => true,
'heirarchial_categories' => true,
'labels' => array(
'prefix' => __( 'You are here: ', 'genesis' ),
View archive.php
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_before_loop', 'wordpress_seo_plugins_breadcrumbs' );
function wordpress_seo_plugins_breadcrumbs() {
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<div class="breadcrumb">','</div>');
}
}
@braddalton
braddalton / custom-html-widget.html
Created Jun 19, 2020
Before Header Utility Bar In Monochrome Pro https://wp.me/p1lTu0-j0n
View custom-html-widget.html
<div class="text">Call us today for help!<a class="" href="tel://1-800-555-2840">(800) 555-2840</a></div>
@braddalton
braddalton / hero.txt
Created May 30, 2020
Hero Text - Genesis Sample Theme Step 4 https://wp.me/p1lTu0-iZL
View hero.txt
<p>New York · Paris · London</p>
<p><a class="button" href="#front-page-2">Start Your Journey</a></p>
@braddalton
braddalton / value.text
Created Mar 13, 2020
Query Args Custom Field Value
View value.text
cat=148&orderby=date&order=ASC
@braddalton
braddalton / editor.html
Created Feb 29, 2020
AgentPress Pro Single Listings HTML for Property Details Grid https://wp.me/p1lTu0-iWy
View editor.html
<strong>Property Description</strong>
These fully furnished 2 bedroom apartments are located on the east side of campus near the Krannert Center, Loomis, and Caffe Paradiso with a 15-minute walk to the undergraduate library, downtown Urbana, and Green Street nightlife. Busey Terrace features private balconies, AC units in each room, secured entrances, lot and covered parking, new windows and lighting, onsite laundry, and fiber Internet. With nearby bus-lines, these spacious and comfortable 2 bedroom apartments are perfect for students looking to get out of the dorms, but still stay conveniently close to campus.
These fully furnished 2 bedroom apartments are located on the east side of campus near the Krannert Center, Loomis, and Caffe Paradiso with a 15-minute walk to the undergraduate library, downtown Urbana, and Green Street nightlife.
[property_details]
</div>
@braddalton
braddalton / homepage.html
Created Jan 31, 2020
Revolution Pro - Remove cover image https://wp.me/p1lTu0-iSe
View homepage.html
<!-- wp:image {"id":1935,"align":"full"} -->
<figure class="wp-block-image alignfull"><img src="http://new.local/wp-content/themes/revolution-pro/config/import/images/windows.jpg" alt="" class="wp-image-1935"/></figure>
<!-- /wp:image -->
View display-widget-full-width.php
'before' => '<div class="home-top widget-area">',
'after' => '</div>',
@braddalton
braddalton / functions.php
Created Jan 17, 2020
Horizontally Display Genesis Featured Posts Inline In One Widget Area https://wp.me/p1lTu0-fmq
View functions.php
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'education' ),
'description' => __( 'This is the top section of the Home page.', 'education' ),
) );
add_action( 'genesis_after_header', 'education_home_top_widget' );
function education_home_top_widget() {
if ( is_active_sidebar( 'home-top' ) ) {
genesis_widget_area( 'home-top', array(
View functions.php
add_filter( 'body_class', 'essence_add_body_class_exclude_front_page' );
function essence_add_body_class_exclude_front_page( $classes ) {
if ( ! is_front_page() ) {
$classes[] = 'exclude-front-hero';
}
return $classes;
You can’t perform that action at this time.