Skip to content

Commit 59af220

Browse files
committedMay 31, 2022
feat (single.php/page.php) : update markup
1 parent 38be108 commit 59af220

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed
 

Diff for: ‎page.php

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
<?php get_header();
1+
<?php
2+
get_header();
23

34
if ( have_posts() ) :
45
while ( have_posts() ) :
5-
the_post(); ?>
6-
7-
<h1><?php the_title(); ?></h1>
8-
9-
<div class="entry-content">
10-
<?php the_content(); ?>
11-
</div>
12-
13-
<?php
14-
endwhile;
6+
the_post();
7+
?>
8+
<header class="container">
9+
<h1><?php the_title(); ?></h1>
10+
</header>
11+
<div class="blocks-container">
12+
<?php the_content(); ?>
13+
</div>
14+
<?php
15+
endwhile;
1516
endif;
16-
get_footer();
17+
18+
get_footer();

Diff for: ‎single.php

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
<?php get_header();
2-
the_post();
3-
?>
4-
<header class="container">
5-
<h1><?php the_title(); ?></h1>
6-
</header>
7-
<div class="blocks-container">
8-
<?php the_content(); ?>;
9-
</div>
101
<?php
2+
get_header();
3+
4+
if ( have_posts() ) :
5+
while ( have_posts() ) :
6+
the_post();
7+
?>
8+
<header class="container">
9+
<h1><?php the_title(); ?></h1>
10+
</header>
11+
<div class="blocks-container">
12+
<?php the_content(); ?>
13+
</div>
14+
<?php
15+
endwhile;
16+
endif;
17+
1118
get_footer();

0 commit comments

Comments
 (0)
Please sign in to comment.