-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from INN/86-hardcode-digest-sidebar
Hardcode the Digest Sidebar, style fixes for certain widgets therein
- Loading branch information
Showing
9 changed files
with
172 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
wp-content/themes/midwestenergynews/less/ninja-forms-compat.less
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,15 @@ | ||
// to prevent injected styles from making buttons wider than they should be | ||
#sidebar { | ||
.field-wrap button, | ||
.field-wrap input[type="button"], | ||
.field-wrap input[type="submit"] { | ||
width: 100%; | ||
max-width: 100%; | ||
box-sizing: border-box; | ||
} | ||
} | ||
// Ninja forms | ||
.home #sidebar .widget.widget_ninja_forms_widget, | ||
.archive #sidebar .widget.widget_ninja_forms_widget { | ||
padding-right: 24px; | ||
} |
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
13 changes: 13 additions & 0 deletions
13
wp-content/themes/midwestenergynews/partials/sidebar-digest.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,13 @@ | ||
<?php | ||
/* | ||
* For the digest category page | ||
* | ||
* Copied from Largo's partials/sidebar-archive.php at 0.6.4 | ||
* @package Largo | ||
* @since 0.6.4 | ||
* @link https://github.com/INN/umbrella-energynewsnetwork/issues/86 | ||
*/ | ||
$custom_sidebar = largo_get_custom_sidebar(); | ||
if ( !dynamic_sidebar( 'digest-sidebar' ) ) { // try custom sidebar registered in functions.php | ||
// do nothing. | ||
} |
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