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.
This commit is contained in:
37
wp-content/themes/ots-signs/single.php
Normal file
37
wp-content/themes/ots-signs/single.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Single post template.
|
||||
*/
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div class="page-header-light"></div>
|
||||
|
||||
<section class="page-hero">
|
||||
<div class="container">
|
||||
<h1><?php the_title(); ?></h1>
|
||||
<p class="lead" style="color:rgba(255,255,255,.6);"><?php echo get_the_date(); ?></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="container" style="max-width:800px;">
|
||||
<article>
|
||||
<div class="entry-content" style="line-height:1.8;color:var(--color-text-muted);">
|
||||
<?php
|
||||
if ( have_posts() ) :
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
the_content();
|
||||
endwhile;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</article>
|
||||
<div style="margin-top:3rem;">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="btn btn-outline">← Back to Home</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user