View tags.html
<div>Excerpt without closing HTML tags.
<div>Excerpt which has the closing HTML tags added using force_balance_tags </div>
View functions.php
add_filter( 'the_content_limit', 'force_balance_tags_content_limit' );
function force_balance_tags_content_limit( $content ) {
$content = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $content ) ) ) );
return $content;
}
View file.php
add_action( 'genesis_loop', 'search_sort_filter', 5 );
function search_sort_filter() {
echo do_shortcode( '[searchandfilter taxonomies="search,category,post_tag,post_format,features"]' );
}
View page.php
<?php
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
add_action( 'genesis_after_header', 'genesis_entry_header_markup_open', 11 );
add_action( 'genesis_after_header', 'genesis_do_post_title', 12 );
add_action( 'genesis_after_header', 'genesis_entry_header_markup_close', 13 );
genesis();
View video.html
<div class="youtubevideo-container"><iframe src="https://www.youtube.com/embed/xcWOviMI6Lk" frameborder="0" allowfullscreen></iframe></div>
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' );