Update default author name and enable author section by default

This commit is contained in:
Adolfo Reyna
2026-03-13 11:53:35 -04:00
parent cd0a626c33
commit bd5222443f
2 changed files with 6 additions and 6 deletions

View File

@@ -54,26 +54,26 @@ $hero_bg = get_theme_mod('hero_background_image', get_template_directory_uri() .
</main><!-- #main --> </main><!-- #main -->
</div><!-- .container --> </div><!-- .container -->
<?php if (get_theme_mod('show_author_section', false)): ?> <?php if (get_theme_mod('show_author_section', true)): ?>
<section class="author-section py-5 bg-light border-top border-bottom"> <section class="author-section py-5 bg-light border-top border-bottom">
<div class="container text-center py-4"> <div class="container text-center py-4">
<?php $author_image = get_theme_mod('author_image_url', ''); ?> <?php $author_image = get_theme_mod('author_image_url', ''); ?>
<?php if ($author_image): ?> <?php if ($author_image): ?>
<img src="<?php echo esc_url($author_image); ?>" <img src="<?php echo esc_url($author_image); ?>"
alt="<?php echo esc_attr(get_theme_mod('author_name', 'Adolfo Reyna')); ?>" alt="<?php echo esc_attr(get_theme_mod('author_name', 'David Clemetson')); ?>"
class="rounded-circle mb-4 shadow-sm" class="rounded-circle mb-4 shadow-sm"
style="width: 150px; height: 150px; object-fit: cover; border: 4px solid white;"> style="width: 150px; height: 150px; object-fit: cover; border: 4px solid white;">
<?php else: ?> <?php else: ?>
<div class="rounded-circle mb-4 shadow-sm mx-auto bg-secondary d-flex align-items-center justify-content-center text-white display-4" <div class="rounded-circle mb-4 shadow-sm mx-auto bg-secondary d-flex align-items-center justify-content-center text-white display-4"
style="width: 150px; height: 150px; border: 4px solid white;"> style="width: 150px; height: 150px; border: 4px solid white;">
<?php <?php
$name = get_theme_mod('author_name', 'Adolfo Reyna'); $name = get_theme_mod('author_name', 'David Clemetson');
echo esc_html(substr($name, 0, 1)); echo esc_html(substr($name, 0, 1));
?> ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<h2 class="display-6 fw-bold font-serif mb-3 text-dark"> <h2 class="display-6 fw-bold font-serif mb-3 text-dark">
<?php echo esc_html(get_theme_mod('author_name', 'Adolfo Reyna')); ?></h2> <?php echo esc_html(get_theme_mod('author_name', 'David Clemetson')); ?></h2>
<p class="lead font-sans text-muted mx-auto" style="max-width: 680px;"> <p class="lead font-sans text-muted mx-auto" style="max-width: 680px;">
<?php echo wp_kses_post(get_theme_mod('author_bio', 'Exploring the intersection of faith, leadership, and modern life. Join me on a journey to uncover timeless wisdom.')); ?> <?php echo wp_kses_post(get_theme_mod('author_bio', 'Exploring the intersection of faith, leadership, and modern life. Join me on a journey to uncover timeless wisdom.')); ?>
</p> </p>

View File

@@ -123,7 +123,7 @@ function wisdom1_customize_register($wp_customize)
// Enable Author Section // Enable Author Section
$wp_customize->add_setting('show_author_section', array( $wp_customize->add_setting('show_author_section', array(
'default' => false, 'default' => true,
'sanitize_callback' => 'rest_sanitize_boolean', 'sanitize_callback' => 'rest_sanitize_boolean',
)); ));
$wp_customize->add_control('show_author_section', array( $wp_customize->add_control('show_author_section', array(
@@ -134,7 +134,7 @@ function wisdom1_customize_register($wp_customize)
// Author Name // Author Name
$wp_customize->add_setting('author_name', array( $wp_customize->add_setting('author_name', array(
'default' => 'Adolfo Reyna', 'default' => 'David Clemetson',
'sanitize_callback' => 'sanitize_text_field', 'sanitize_callback' => 'sanitize_text_field',
)); ));
$wp_customize->add_control('author_name', array( $wp_customize->add_control('author_name', array(