Skip to content

Commit 964a92a

Browse files
author
Brylie Christopher Oxley
authored
Merge pull request #197 from shailee-m/36-contai-er-alignment
36 container alignment
2 parents 2f48cd2 + 96132b4 commit 964a92a

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

functions.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
*/
88
require get_theme_file_path( 'inc/theme-customizer.php' );
99

10-
function my_theme_setup() {
11-
/* Allow full-width Gutenberg widget alignment */
12-
add_theme_support( 'align-wide' );
13-
}
10+
/* Allow full-width Gutenberg widget alignment */
11+
add_theme_support( 'align-wide' );
1412

1513
/* Theme Constants (to speed up some common things) ------*/
1614
define( 'HOME_URI', get_bloginfo( 'url' ) );
@@ -341,4 +339,3 @@ function enqueue_scripts() {
341339

342340
// This line below adds the colors defined above into the color pallete of WordPress
343341
add_theme_support( 'editor-color-palette', $cc_colors);
344-
add_action( 'after_setup_theme', 'my_theme_setup' );

style.css

+8-2
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ ul.wp-block-post-template {
305305
list-style: none;
306306
}
307307

308+
.page-template-full-width-no-title .site-content > .container {
309+
max-width: none;
310+
padding-right: 0;
311+
padding-left: 0;
312+
}
313+
308314
@media (min-width: 750px) {
309315
.alignfull {
310316
max-width: 1000%;
@@ -315,8 +321,8 @@ ul.wp-block-post-template {
315321

316322
.alignwide {
317323
max-width: 1000%;
318-
margin-right: calc(25% - 25vw);
319-
margin-left: calc(25% - 25vw);
324+
margin-right: calc(25% - 15vw);
325+
margin-left: calc(25% - 15vw);
320326
width: auto;
321327
}
322328

0 commit comments

Comments
 (0)