Extract newsletter into reusable template part and add Customizer support
This commit is contained in:
@@ -35,7 +35,7 @@ $hero_bg = get_theme_mod('hero_background_image', get_template_directory_uri() .
|
||||
while (have_posts()):
|
||||
the_post();
|
||||
?>
|
||||
<?php get_template_part('template-parts/content', 'card'); ?>
|
||||
<?php get_template_part('template-parts/content', 'card'); ?>
|
||||
<?php
|
||||
endwhile;
|
||||
|
||||
@@ -54,21 +54,7 @@ $hero_bg = get_theme_mod('hero_background_image', get_template_directory_uri() .
|
||||
</main><!-- #main -->
|
||||
</div><!-- .container -->
|
||||
|
||||
<section class="bg-primary text-white py-5 mt-5">
|
||||
<div class="container text-center py-5">
|
||||
<h3 class="display-6 fw-bold mb-4 font-serif text-white">Receive weekly insights directly in your inbox.</h3>
|
||||
<p class="lead mb-4 font-sans text-light">Join our community and get our latest thoughts sent straight to you.
|
||||
</p>
|
||||
<form class="mx-auto" style="max-width: 500px;">
|
||||
<div class="input-group input-group-lg shadow">
|
||||
<input type="email" placeholder="Your email address" class="form-control border-0 px-4" required>
|
||||
<button type="submit" class="btn btn-secondary px-5 border-0 fw-bold text-uppercase h-100">
|
||||
Subscribe
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<?php get_template_part('template-parts/newsletter'); ?>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
|
||||
Reference in New Issue
Block a user