View fb-like.php
add_filter( 'wp_nav_menu_reg_items','wpsites_loginout_menu_link' );
function wpsites_loginout_menu_link( $menu ) {
$loginout = '<li id="log-in-out-link" class="menu-item menu-type-link">' . wp_loginout($_SERVER['REQUEST_URI'], false ) . '</li><li class="fb-like" data-href="https://www.facebook.com/wpsites.net/" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true"></li>';
$menu .= $loginout;
return $menu;
}
View Bookmarks.html
<ul class="genesis-nav-menu">
<li class="menu-item"><a href="#section-1">Section 1</a></li>
<li class="menu-item"><a href="#section-2">Section 2</a></li>
<li class="menu-item"><a href="#section-3">Section 3</a></li>
<li class="menu-item"><a href="#section-4">Section 4</a></li>
<li class="menu-item"><a href="#section-5">Section 5</a></li>
<li class="menu-item"><a href="#section-6">Section 6</a></li>
</ul>
<div id="section-1"></div>
View functions.php
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter($post_meta) {
$post_meta = '[post_tags]';
return $post_meta;
}
add_action( 'genesis_entry_header', 'add_post_categories', 99 );
function add_post_categories() {
echo '<p class="entry-meta">' . do_shortcode('[post_categories]') . '<p>';
}
View functions.php
add_action( 'genesis_entry_header', 'add_after_title', 12 );
function add_after_title() {
if ( ! is_singular( 'post' ) )
return;
echo '<small>This post may contain affiliate or sponsor links</small>';
}
View text-widget.html
[facetwp facet="categories"]
<button value="Reset" onclick="FWP.reset()" class="reset-button" />Reset Filters</button>
View functions.php
genesis_register_sidebar( array(
'id' => 'facet-categories',
'name' => __( 'Filter Categories', 'genesis' ),
'description' => __( 'Filter Posts by Categories.', 'genesis' ),
) );
add_action( 'genesis_before_sidebar_widget_area', 'facet_categories_widget' );
function facet_categories_widget() {
if ( is_home() || is_front_page() || genesis_is_blog_template() || is_archive() || is_search() ) {
View footer-reveal.html
View archive.php
<?php
/**
* @author Brad Dalton
* @link https://wpsites.net/web-design/add-custom-field-to-genesis-loop/
*/
add_action( 'genesis_entry_content', 'function_name', 12 );
function function_name() {
$value = get_post_meta( get_the_ID(), 'key', true );
View functions.php
genesis_register_sidebar( array(
'id' => 'sticky-message',
'name' => __( 'Sticky Message', 'infinity-pro' ),
'description' => __( 'This is the sticky message widget area.', 'infinity-pro' ),
) );
add_action( 'genesis_before', 'infinity_pro_sticky_message' );
function infinity_pro_sticky_message() {
genesis_widget_area( 'sticky-message', array(
'before' => '<div class="sticky-message">',
View archive-CPT.php
<?php
//* Relocate archive intro text
remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_taxonomy_title_description' );
//* Remove the entry meta in the entry header
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );