Skip to content

Instantly share code, notes, and snippets.

View tiffany-kelley's full-sized avatar

Tiffany Kelley tiffany-kelley

View GitHub Profile
@tiffany-kelley
tiffany-kelley / next-page.php
Created January 14, 2017 02:47 — forked from studiopress/next-page.php
Genesis post navigation.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize the next page link
add_filter ( 'genesis_next_link_text' , 'sp_next_page_link' );
function sp_next_page_link ( $text ) {
return 'Custom Next Page Link &#x000BB;';
}
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize search form input box text
add_filter( 'genesis_search_text', 'sp_search_text' );
function sp_search_text( $text ) {
return esc_attr( 'Search my blog...' );
}
@tiffany-kelley
tiffany-kelley / customize.php
Created January 14, 2017 02:46 — forked from studiopress/customize.php
Genesis entry footer.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize the entry meta in the entry footer (requires HTML5 theme support)
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter($post_meta) {
$post_meta = '[post_categories] [post_tags]';
return $post_meta;
}
@tiffany-kelley
tiffany-kelley / customize.php
Created January 14, 2017 02:46 — forked from studiopress/customize.php
Genesis entry header.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize the entry meta in the entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}
@tiffany-kelley
tiffany-kelley / reposition-primary.php
Created January 14, 2017 02:44 — forked from studiopress/reposition-primary.php
Genesis primary/secondary navigation.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );
@tiffany-kelley
tiffany-kelley / color-styles.css
Created January 14, 2017 02:41 — forked from studiopress/color-styles.css
Genesis color styles.
.theme-blue a,
.theme-blue a:visited {
color: #0d72c7;
}
@tiffany-kelley
tiffany-kelley / functions.php
Created January 14, 2017 02:34 — forked from studiopress/functions.php
Sticky menu.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Enqueue sticky menu script
add_action( 'wp_enqueue_scripts', 'sp_enqueue_script' );
function sp_enqueue_script() {
wp_enqueue_script( 'sample-sticky-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/sticky-menu.js', array( 'jquery' ), '1.0.0' );
}
//* Reposition the secondary navigation menu
@tiffany-kelley
tiffany-kelley / after-entry-widget.php
Created January 14, 2017 02:31 — forked from studiopress/after-entry-widget.php
Add After Entry Widget Area
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Add support for after entry widget
add_theme_support( 'genesis-after-entry-widget-area' );