From b72d1b95d14428f8fd150d4825cb99da0583a00f Mon Sep 17 00:00:00 2001 From: Fabiano Alencar Date: Wed, 4 Apr 2018 15:53:13 -0300 Subject: [PATCH] Full width on cover image and remove sidebar of single and pages --- src/assets/scss/_post.scss | 18 ++++++++++++++++++ src/functions.php | 2 +- src/header.php | 2 +- src/page.php | 3 --- src/single.php | 1 - 5 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/assets/scss/_post.scss b/src/assets/scss/_post.scss index 1809742..ed6b937 100644 --- a/src/assets/scss/_post.scss +++ b/src/assets/scss/_post.scss @@ -27,6 +27,24 @@ img { max-width: 100%; } + .wp-block-cover-image{ + width: 100vw; + position: relative; + left: 50%; + right: 50%; + margin-left: -50vw; + margin-right: -50vw; + } + .wp-block-embed{ + iframe{ + width: 100%; + } + } + .wp-block-gallery{ + @media (max-width: 768px){ + padding-left: 0; + } + } } } } diff --git a/src/functions.php b/src/functions.php index 3da387f..7d372f9 100644 --- a/src/functions.php +++ b/src/functions.php @@ -22,7 +22,7 @@ if(!function_exists('tainacan_setup')) { // This is all for compatibility with versions of WordPress prior to 3.4. define( 'HEADER_TEXTCOLOR', $custom_header_support['default-text-color'] ); } - + add_theme_support( 'align-wide' ); add_theme_support( 'html5', array( 'comment-list' , 'comment-form') ); add_theme_support( 'post-thumbnails' ); diff --git a/src/header.php b/src/header.php index 4c5de90..4f32225 100644 --- a/src/header.php +++ b/src/header.php @@ -33,4 +33,4 @@ get_header('banner'); ?> -
\ No newline at end of file +
\ No newline at end of file diff --git a/src/page.php b/src/page.php index bb07c0b..d1c269b 100644 --- a/src/page.php +++ b/src/page.php @@ -6,8 +6,5 @@
- - - \ No newline at end of file diff --git a/src/single.php b/src/single.php index 87bcce1..f582bc6 100644 --- a/src/single.php +++ b/src/single.php @@ -5,6 +5,5 @@ - \ No newline at end of file