Skip to content

Commit

Permalink
tweaks for landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Nov 21, 2019
1 parent 1e87984 commit 4bf8f64
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion assets/scss/partials/_singular.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
margin-bottom: 0;
}

.full-width-content & {
.full-width-content &,
.wide-content & {
&.alignwide {
margin: calc( 2 * #{$block-margin} ) calc(50% - 50vw);
max-width: 100vw;
Expand Down
1 change: 1 addition & 0 deletions inc/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function be_remove_entry_title() {

if( $has_h1 ) {
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_do_breadcrumbs', 8 );
remove_action( 'genesis_entry_header', 'ea_entry_category', 8 );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
remove_action( 'genesis_entry_header', 'ea_entry_author', 12 );
Expand Down
2 changes: 1 addition & 1 deletion inc/wide-layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
*/
function ea_gutenberg_layout_style() {
wp_enqueue_script( 'ea-editor', get_stylesheet_directory_uri() . '/assets/js/editor.js', array( 'wp-blocks', 'wp-dom' ), filemtime( get_stylesheet_directory() . '/assets/js/editor.js' ), true );
wp_enqueue_style( 'ea-layout', get_stylesheet_directory_uri() . '/assets/css/genesis-layout.css', [], filemtime( get_stylesheet_directory() . '/assets/css/genesis-layout.css' ) );
}
add_action( 'enqueue_block_editor_assets', 'ea_gutenberg_layout_style' );

Expand Down
15 changes: 15 additions & 0 deletions page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Page
*
* @package EAGenesisChild
* @author Bill Erickson
* @since 1.0.0
* @license GPL-2.0+
**/

// Breadcrumbs before page title
add_action( 'genesis_entry_header', 'genesis_do_breadcrumbs', 8 );
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );

genesis();

0 comments on commit 4bf8f64

Please sign in to comment.