View facebook-messenger-chat.js
<style>.fb-livechat,.fb-widget{display:none}.ctrlq.fb-button,.ctrlq.fb-close{position:fixed;right:24px;cursor:pointer}.ctrlq.fb-button{z-index:1;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyOCAxMjgiIGhlaWdodD0iMTI4cHgiIGlkPSJMYXllcl8xIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB3aWR0aD0iMTI4cHgiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxnPjxyZWN0IGZpbGw9IiMwMDg0RkYiIGhlaWdodD0iMTI4IiB3aWR0aD0iMTI4Ii8+PC9nPjxwYXRoIGQ9Ik02NCwxNy41MzFjLTI1LjQwNSwwLTQ2LDE5LjI1OS00Niw0My4wMTVjMCwxMy41MTUsNi42NjUsMjUuNTc0LDE3LjA4OSwzMy40NnYxNi40NjIgIGwxNS42OTgtOC43MDdjNC4xODYsMS4xNzEsOC42MjEsMS44LDEzLjIxMywxLjhjMjUuNDA1LDAsNDYtMTkuMjU4LDQ2LTQzLjAxNUMxMTAsMzYuNzksODkuNDA1LDE3LjUzMSw2NCwxNy41MzF6IE02OC44NDUsNzUuMjE0ICBMNTYuOTQ3LDYyLjg1NU
View functions.php
register_post_type( 'accomodation',
array(
'labels' => array(
'name' => _x( 'Accomodation', 'post type general name' ,'genesis' ),
'singular_name' => _x( 'Accomodation', 'post type singular name','genesis' ),
'menu_name' => _x( 'Accomodation', 'admin menu' ,'genesis' ),
'name_admin_bar' => _x( 'Accomodation', 'add new on admin bar' ,'genesis' ),
'add_new' => _x( 'Add New', 'Accomodation Item' ,'genesis' ),
'add_new_item' => __( 'Add New Accomodation Item' ,'genesis' ),
'new_item' => __( 'New Accomodation Item' ,'genesis' ),
View functions.php
genesis_register_sidebar( array(
'id' => 'left',
'name' => __( 'Left' ),
) );
genesis_register_sidebar( array(
'id' => 'right',
'name' => __( 'Right' ),
) );
View functions.php
add_action( 'get_header', 'password_protected_full_width_layout' );
function password_protected_full_width_layout() {
if ( post_password_required() && is_singular( 'post' ) ) {
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
}
}
View functions.php
add_action( 'wp_enqueue_scripts', 'genesis_infinite_scroll_load_more_posts_button' );
function genesis_infinite_scroll_load_more_posts_button() {
wp_enqueue_script( 'infinite-scroll', get_stylesheet_directory_uri() . '/is.js', array( 'jquery' ), '1.0.0', true );
wp_enqueue_script( 'infinite-scroll-set', get_stylesheet_directory_uri() . '/set.js' , array( 'jquery', 'infinite-scroll' ), '1.0.0', true );
}
View bookmarks.html
<h2 id="C4">Chapter 4</h2>
<a href="#C4">Jump to Chapter 4</a>
View functions.php
add_action( 'wp_enqueue_scripts', 'genesis_masonry_template' );
function genesis_masonry_template() {
wp_enqueue_script( 'masonry-options', get_stylesheet_directory_uri().'/masonry/masonry-options.js' , array('jquery-masonry'), '1.0', true );
wp_enqueue_style( 'masonry-styles', get_stylesheet_directory_uri() . '/masonry/masonry.css', array(), CHILD_THEME_VERSION );
}
View home.php
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'yearly_posts' );
/**
* @author Brad Dalton
* @link https://wpsites.net/web-design/genesis-template-to-display-posts-by-year/
*/
function yearly_posts() {
View functions.php
// Register widget areas.
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'lifestyle-pro' ),
'description' => __( 'This is the top section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle',
'name' => __( 'Home - Middle', 'lifestyle-pro' ),
'description' => __( 'This is the middle section of the homepage.', 'lifestyle-pro' ),
View functions.php
add_shortcode( 'top', 'back_to_top_link' );
/**
* @author Brad Dalton
* @link https://wpsites.net/web-design/add-back-return-to-top-link-in-genesis-footer/
*/
function back_to_top_link() {
$top = sprintf( '<a href="%s">' . __( 'Back To Top' ) . '</a>', __( '#' ) );
return $top;
}