This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The custom template for the Design category for Modern Portfolio Pro | |
*/ | |
//* Force full width content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove the entry meta in the entry header | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do not add this line | |
// Reduce the primary navigation menu to two levels depth. | |
add_filter( 'wp_nav_menu_args', 'genesis_sample_primary_menu_args' ); | |
function genesis_sample_primary_menu_args( $args ) { | |
if ( 'primary' != $args['theme_location'] ) { | |
return $args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag | |
/* Edit (or add) the enqueue line for the responsive menu */ | |
//* Enqueue Scripts | |
add_action( 'wp_enqueue_scripts', 'executive_load_scripts' ); | |
function executive_load_scripts() { | |
wp_enqueue_script( 'executive-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Steps to Take | |
1. First, we’ll comment out the sections that add the backstretch script. | |
2. Next we’ll add a new function to add the body background-image style, both in front-page.php. | |
3. And then we’ll add the positioning styles to style-front.css. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove the line above when adding to functions.php | |
// Add theme support for new menu | |
// Add New Footer Menu; Keep Primary and Secondary Menus | |
add_theme_support ( 'genesis-menus' , array ( | |
'primary' => __( 'Primary Navigation Menu', 'genesis' ), | |
'secondary' => __( 'Secondary Navigation Menu', 'genesis' ), | |
'footer' => __( 'Footer Navigation Menu', 'genesis' ) | |
) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Agent Focused Pro Front Page Styles */ | |
/* Front Page Table of Contents | |
- Front Page General | |
- Titles | |
- Site Header | |
- Flexible Widgets | |
- Front Page 1 | |
- Front Page Search Bar | |
- Front Page 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Use only code below | |
/** | |
* Use shortcode_atts_gallery filter to add new defaults to the WordPress gallery shortcode. | |
* New gallery shortcode defaults (columns="2" and size="medium"). | |
* Allows user input in the post gallery shortcode. | |
* | |
* @author Marcy Diaz | |
* @link http://amethystwebsitedesign.com/how-to-use-larger-images-in-a-wordpress-gallery/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add genesis layout classes to the Block Editor. | |
// File lives in the theme's /js/ folder. | |
wp.domReady(function () { | |
yourTheme.updateLayoutClass(); | |
var layouts = document.querySelector(".genesis-layout-selector"); | |
layouts.addEventListener("input", function (e) { | |
yourTheme.updateLayoutClass(); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do not add this to your functions.php. | |
/* Use default avatars for author and others in comments */ | |
add_filter( 'get_avatar', 'agf_custom_avatars', 10, 3 ); | |
function agf_custom_avatars( $avatar, $size ) { | |
if ( is_admin() ) { | |
$size = '48'; | |
return $avatar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This registers the custom post type for the SMOMS mailbox content. | |
* | |
* @package SMOMS Custom Content | |
* @author Marcy Diaz <marcy@amethystwebsitedesign.com> | |
* @copyright 2018 Marcy Diaz | |
* @license GPL-2.0+ | |
*/ |
NewerOlder