Skip to content

Commit 2ac8d76

Browse files
committed
WDSUS-4 - Remove extra functions and fix content issue
1 parent 754f539 commit 2ac8d76

File tree

8 files changed

+13
-79
lines changed

8 files changed

+13
-79
lines changed

comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
?>
2323

24-
<div id="comments" class="comments-area">
24+
<div id="comments" class="comments-area is-layout-constrained">
2525
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment section', 'wd_s' ); ?></h2>
2626

2727
<?php

inc/setup/content-width.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

inc/setup/setup.php

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ function setup() {
4949
register_nav_menus(
5050
[
5151
'primary' => esc_html__( 'Primary Menu', 'wd_s' ),
52-
'footer' => esc_html__( 'Footer Menu', 'wd_s' ),
53-
'mobile' => esc_html__( 'Mobile Menu', 'wd_s' ),
5452
]
5553
);
5654

@@ -69,18 +67,6 @@ function setup() {
6967
]
7068
);
7169

72-
// Set up the WordPress core custom background feature.
73-
add_theme_support(
74-
'custom-background',
75-
apply_filters(
76-
'wd_s_custom_background_args',
77-
[
78-
'default-color' => 'ffffff',
79-
'default-image' => '',
80-
]
81-
)
82-
);
83-
8470
// Custom logo support.
8571
add_theme_support(
8672
'custom-logo',
@@ -99,39 +85,10 @@ function setup() {
9985
// Gutenberg support for full-width/wide alignment of supported blocks.
10086
add_theme_support( 'align-wide' );
10187

102-
// Gutenberg defaults for font sizes.
103-
add_theme_support(
104-
'editor-font-sizes',
105-
[
106-
[
107-
'name' => __( 'Small', 'wd_s' ),
108-
'size' => 12,
109-
'slug' => 'small',
110-
],
111-
[
112-
'name' => __( 'Normal', 'wd_s' ),
113-
'size' => 16,
114-
'slug' => 'normal',
115-
],
116-
[
117-
'name' => __( 'Large', 'wd_s' ),
118-
'size' => 36,
119-
'slug' => 'large',
120-
],
121-
[
122-
'name' => __( 'Huge', 'wd_s' ),
123-
'size' => 50,
124-
'slug' => 'huge',
125-
],
126-
]
127-
);
128-
12988
// Gutenberg editor styles support.
13089
add_theme_support( 'editor-styles' );
13190
add_editor_style( 'build/index.css' );
13291

133-
// Gutenberg responsive embed support.
134-
add_theme_support( 'responsive-embeds' );
13592
}
13693

13794
add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' );

inc/template-tags/print-entry-footer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function print_entry_footer() {
4444
esc_html__( 'Edit %s', 'wd_s' ),
4545
wp_kses_post( get_the_title( '<span class="screen-reader-text">"', '"</span>', false ) )
4646
),
47-
'<span class="edit-link">',
48-
'</span>'
47+
'<div class="edit-link">',
48+
'</div>'
4949
);
5050
}

template-parts/content-page.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
?>
1111

12-
<article id="post-<?php the_ID(); ?>" <?php post_class( 'is-layout-constrained' ); ?>>
12+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
1313

1414
<header class="entry-header is-layout-constrained">
1515
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
@@ -29,16 +29,16 @@
2929
</div><!-- .entry-content -->
3030

3131
<?php if ( get_edit_post_link() ) : ?>
32-
<footer class="entry-footer">
32+
<footer class="entry-footer is-layout-constrained">
3333
<?php
3434
edit_post_link(
3535
sprintf(
3636
/* translators: %s: Name of current post */
3737
esc_html__( 'Edit %s', 'wd_s' ),
3838
the_title( '<span class="screen-reader-text">"', '"</span>', false )
3939
),
40-
'<span class="edit-link">',
41-
'</span>'
40+
'<div class="edit-link">',
41+
'</div>'
4242
);
4343
?>
4444
</footer><!-- .entry-footer -->

template-parts/content-password-protected.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
?>
1111

12-
<article id="post-<?php the_ID(); ?>" <?php post_class( 'is-layout-constrained' ); ?>>
12+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
1313

1414
<header class="entry-header is-layout-constrained">
1515
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>

template-parts/content-search.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
?>
1515

16-
<article <?php post_class( 'is-layout-constrained' ); ?>>
16+
<article <?php post_class(); ?>>
1717

1818
<header class="entry-header is-layout-constrained">
1919
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
@@ -26,11 +26,11 @@
2626
<?php endif; ?>
2727
</header><!-- .entry-header -->
2828

29-
<div class="entry-summary">
29+
<div class="entry-summary is-layout-constrained">
3030
<?php the_excerpt(); ?>
3131
</div><!-- .entry-summary -->
3232

33-
<footer class="entry-footer">
33+
<footer class="entry-footer is-layout-constrained">
3434
<?php print_entry_footer(); ?>
3535
</footer><!-- .entry-footer -->
3636

template-parts/content.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
?>
1515

16-
<article <?php post_class( 'post-container is-layout-constrained' ); ?>>
16+
<article <?php post_class( 'post-container' ); ?>>
1717

1818
<header class="entry-header is-layout-constrained">
1919
<?php
@@ -58,7 +58,7 @@
5858
?>
5959
</div><!-- .entry-content -->
6060

61-
<footer class="entry-footer">
61+
<footer class="entry-footer is-layout-constrained">
6262
<?php print_entry_footer(); ?>
6363
</footer><!-- .entry-footer -->
6464

0 commit comments

Comments
 (0)