View functions.php
add_filter('genesis_footer_creds_text', 'multisite_footer_creds_filter');
function multisite_footer_creds_filter( $creds ) {
$url = get_site_url();
$name = get_bloginfo( 'name' );
$link = esc_url('http://example.com');
$creds = sprintf('[footer_copyright] &middot; <a href="%s">%s</a> Built on the <a href="%s" title="Genesis Framework">Genesis Framework</a>', $url, $name, $link );
View page.php
<?php
genesis();
View functions.php
add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 );
function theme_menu_extras( $menu, $args ) {
if ( 'secondary' !== $args->theme_location )
return $menu;
ob_start();
get_search_form();
$search = ob_get_clean();
$menu .= '<li class="right search">' . $search . '</li>';
View functions.php
<?php
//* Template Name: Splash
//* Add custom body class to the head
add_filter( 'body_class', 'splash_add_body_class' );
function splash_add_body_class( $classes ) {
$classes[] = 'splash';
return $classes;
View functions.php
function mhm_footer_city() {
?>
<div class="footer-city-bg">
<div class="wrap">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/default-listing.png" alt="" width="" height="" />
</div>
</div>
<?php
}
add_action( 'genesis_before_footer', 'mhm_footer_city' );
View functions.php
add_action( 'pre_get_posts', 'portfolio_items' );
function portfolio_items( $query ) {
if( $query->is_main_query() && !is_admin() && is_post_type_archive( 'portfolio' ) ) {
$query->set( 'posts_per_page', '12' );
}
}
View inline-buttons.html
<div class="three-inline-buttons">
<p>
<a class="button" href="http://example/">Buy Now</a><a class="button" href="http://example/">Buy Now</a><a class="button" href="http://example/">Buy Now</a>
</p>
</div>
View inline-buttons.html
<div class="inline-buttons">
<p>
<a class="one-third first button" href="http://example/">Buy Now</a><a class="one-third button" href="http://example/">Buy Now</a><a class="one-third button" href="http://example/">Buy Now</a>
</p>
</div>
View functions.php
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter( $post_meta ) {
$post_meta = '[post_categories] [disclosure] [post_tags]';
return $post_meta;
}
View functions.php
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] [disclosure] [post_edit]';
return $post_info;
}