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
// 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 <[email protected]> | |
* @copyright 2018 Marcy Diaz | |
* @license GPL-2.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
/* Center logo and menu on only large screens. */ | |
@media only screen and (min-width: 960px) { | |
.wp-custom-logo .title-area, | |
.wp-custom-logo .nav-primary { | |
float: none; | |
} | |
.wp-custom-logo .title-area { | |
margin: 0 auto; |
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 | |
/** | |
* | |
* Template Name: Archive | |
* | |
* Adapted from Genesis Framework page_archive.php | |
* | |
* @category Amethyst-v2 | |
* @package Templates | |
* @subpackage Archive |
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 | |
/** | |
* | |
* Template Name: Archive | |
* | |
* Adapted from Genesis Framework page_archive.php | |
* | |
* @category Amethyst-v2 | |
* @package Templates | |
* @subpackage Archive |
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
/*! modernizr 3.3.1 (Custom Build) | MIT * | |
* http://modernizr.com/download/?-objectfit-setclasses !*/ | |
!function(e,n,t){function r(e,n){return typeof e===n}function o(){var e,n,t,o,i,s,a;for(var f in g)if(g.hasOwnProperty(f)){if(e=[],n=g[f],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(o=r(n.fn,"function")?n.fn():n.fn,i=0;i<e.length;i++)s=e[i],a=s.split("."),1===a.length?Modernizr[a[0]]=o:(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=o),y.push((o?"":"no-")+a.join("-"))}}function i(e){var n=_.className,t=Modernizr._config.classPrefix||"";if(w&&(n=n.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(r,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(n+=" "+t+e.join(" "+t),w?_.className.baseVal=n:_.className=n)}function s(e){return e.replace(/([a-z])-([a-z]) |
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 // 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; | |
} |
NewerOlder