Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@

namespace Fair_Parent;

get_header();

the_post(); ?>
get_header(); ?>

<main class="site-main" id="content">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>

<article class="entry-content">
<?php $class = ( is_front_page() ) ? 'screen-reader-text ' : ''; ?>
<header class="<?php echo esc_attr( $class ); ?>entry-title">
Expand All @@ -34,6 +38,11 @@
?>
</div>
</article>

<?php
endwhile;
endif;
?>
</main>

<?php get_footer();
13 changes: 10 additions & 3 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@

namespace Fair_Parent;

get_header();

the_post(); ?>
get_header(); ?>

<main class="site-main" id="content">

<section class="block block-single">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<article class="article-content">

<h1><?php the_title(); ?></h1>
Expand All @@ -42,6 +45,10 @@
} ?>

</article>
<?php
endwhile;
endif;
?>
</section>

</main>
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://github.com/openwebff/fair-parent-theme/
Author: FAIR
Author URI: https://github.com/openwebff/
Description: Used for web-pub site.
Version: 1.1.0
Version: 1.0.3
Tested up to: 6.8.0
Requires PHP: 7.4
License: MIT License
Expand Down