Files
OTSSigns-Website/wp-content/themes/ots-signs/index.php
Matt Batchelder 9fddd43a2c Add custom page templates for Home, Contact, and Services
- Created a new Contact Page template with a contact form and information section.
- Developed a Home Page template featuring a hero section, core capabilities, and pricing details.
- Introduced a Services Page template outlining core services and industry solutions.
- Added a default page template for standard pages without a custom template.
- Implemented a single post template for displaying individual blog posts.
- Created a style.css file for theme metadata and styling.
2026-02-19 09:10:01 -05:00

46 lines
1.2 KiB
PHP

<?php
/**
* The main template file / fallback for all archive views.
*/
get_header();
?>
<div class="page-header-light"></div>
<section class="page-hero">
<div class="container">
<h1><?php
if ( is_home() ) :
echo 'Blog';
elseif ( is_archive() ) :
the_archive_title();
else :
echo 'OTS Signs';
endif;
?></h1>
</div>
</section>
<section class="section">
<div class="container">
<?php if ( have_posts() ) : ?>
<div class="grid-3">
<?php while ( have_posts() ) : the_post(); ?>
<article class="feature-card">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p><?php the_excerpt(); ?></p>
<a href="<?php the_permalink(); ?>" class="btn btn-outline btn-sm">Read More</a>
</article>
<?php endwhile; ?>
</div>
<div style="margin-top:2rem;">
<?php the_posts_pagination(); ?>
</div>
<?php else : ?>
<p>No posts found.</p>
<?php endif; ?>
</div>
</section>
<?php get_footer(); ?>