-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Bootstrap v4.1.3 in package-lock.json
See #16
- Loading branch information
Showing
10 changed files
with
1,055 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
/** | ||
* Move Featured Image on archive pages from | ||
* content to header. | ||
* | ||
* @package bootstrap4genesis | ||
*/ | ||
|
||
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); | ||
add_action( 'genesis_entry_header', 'genesis_do_post_image', 8 ); |
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,28 @@ | ||
<?php | ||
/** | ||
* Display Featured Image on single posts (pages, and custom post types). | ||
* | ||
* @package bootstrap4genesis | ||
*/ | ||
add_action( 'genesis_entry_header', 'bs4g_single_featured_image', 5 ); | ||
|
||
/** | ||
* Output Featured Image on single post (pages, and custom post types). | ||
*/ | ||
function bs4g_single_featured_image() { | ||
if ( ! is_singular() ) { | ||
return; | ||
} | ||
|
||
if ( ! has_post_thumbnail() ) { | ||
return; | ||
} | ||
|
||
the_post_thumbnail( | ||
'post-thumbnail', | ||
array( | ||
'class' => 'img-fluid attachment-post-thumbnail size-post-thumbnail', | ||
) | ||
); | ||
|
||
} |
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,11 @@ | ||
<?php | ||
/** | ||
* Image Sizes. | ||
* | ||
* @package bootstrap4genesis | ||
*/ | ||
|
||
/** | ||
* Set Featured Image size. | ||
*/ | ||
set_post_thumbnail_size( 1170, 630, true ); |
8 changes: 8 additions & 0 deletions
8
includes/mv-sidebar-secondary-inside-content-sidebar-wrap.php
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,8 @@ | ||
<?php | ||
/** | ||
* Move sidebar-secondary inside content-sidebar-wrap. | ||
* | ||
* @package bootstrap4genesis | ||
*/ | ||
remove_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_sidebar_alt' ); | ||
add_action( 'genesis_after_content', 'genesis_get_sidebar_alt' ); |
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,11 @@ | ||
<?php | ||
/** | ||
* Move Nav inside Navbar. | ||
* | ||
* Move Primary nav from default position, | ||
* into navbar (.site-header). | ||
* @package bootstrap4genesis | ||
*/ | ||
|
||
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | ||
add_action( 'genesis_header', 'genesis_do_nav' ); |
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,13 @@ | ||
<?php | ||
/** | ||
* Remove unused Superfish JavaScript. | ||
* | ||
* @package bootstrap4genesis | ||
*/ | ||
|
||
add_action( 'wp_enqueue_scripts', 'bs4g_remove_unused_js', 100 ); | ||
|
||
function bs4g_remove_unused_js() { | ||
wp_dequeue_script( 'superfish' ); | ||
wp_dequeue_script( 'superfish-args' ); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.