• Fred Schenk

    (@faschenk)


    Added 3 small snippets in footer.php to make the phone number, e-mail and home address working links (instead of 404-pages).

    New code:

    <?php if(get_theme_mod('phone_no')): ?>
                    <div class="col-xs-12 col-sm-6 col-lg-4">
                        <a href="tel:<?php echo esc_attr(get_theme_mod('phone_no')); ?>" class="hover-animate">
                            <span class="ukie-icons hover-animate"><i class="fa fa-phone"></i></span> <?php echo esc_attr(get_theme_mod('phone_no')); ?></a>
                    </div>
                    <?php endif; ?>
                    <?php if(get_theme_mod('email_add')): ?>
                    <!--email_off-->  
                    <div class="col-xs-12 col-sm-6 col-lg-4">
                        <a href="mailto:<?php echo esc_attr(get_theme_mod('email_add')); ?>" class="hover-animate">
                            <span class="ukie-icons hover-animate"><i class="fa fa-paper-plane"></i></span> <?php echo esc_attr(get_theme_mod('email_add')); ?></a>
                    </div>
                    <!--/email_off-->
                    <?php endif; ?>
                     
                    <?php if(get_theme_mod('address')): ?>
                    <div class="col-xs-12 col-sm-6 col-lg-4">
                        <a href="https://maps.google.com/maps?q=<?php echo esc_attr(get_theme_mod('address')); ?>" class="hover-animate">
                            <span class="ukie-icons hover-animate"><i class="fa fa-map-marker"></i></span><?php echo esc_attr(get_theme_mod('address')); ?> </a>
                    </div>  
                    <?php endif; ?>
  • The topic ‘Nice, clean theme. Just one suggestion…’ is closed to new replies.