forked from cdukes/bones-for-genesis-2-0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
65 additions
and
31 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,3 @@ | ||
<?php | ||
|
||
if( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | ||
|
||
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | ||
add_action( 'genesis_before_loop', 'bfg_do_breadcrumbs' ); | ||
/* | ||
* Use WordPress SEO's breadcrumbs when available | ||
* | ||
* @since 2.3.11 | ||
*/ | ||
function bfg_do_breadcrumbs() { | ||
|
||
if( function_exists('yoast_breadcrumb') ) { | ||
yoast_breadcrumb( '<p class="breadcrumbs">', '</p>' ); | ||
} else { | ||
genesis_do_breadcrumbs(); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
(function() { | ||
|
||
'use strict'; | ||
|
||
})(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
(function() { | ||
|
||
'use strict'; | ||
|
||
// Remove the 'no-js' <body> class | ||
document.body.classList.remove('no-js'); | ||
|
||
// Enable FitVids on the content area | ||
fitvids('.content'); | ||
|
||
})(); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// https://bitsofco.de/linting-html-using-css/ | ||
|
||
// Inline styles | ||
*[style] { | ||
border: .5em solid $red; | ||
} | ||
|
||
// Missing <a> hrefs | ||
a:not([href]), | ||
a[href='#'], | ||
a[href=''] { | ||
border: .5em solid $red; | ||
} | ||
|
||
// Missing <img> alts | ||
img:not([alt]), | ||
img[alt=''] { | ||
border: .5em solid $red; | ||
} | ||
|
||
// Empty interactive elements | ||
button:empty, | ||
a:empty { | ||
border: .5em solid $red; | ||
} |
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
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
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