• 0.3.3 update added clickable phone and email links. The lz_charity_welfare_mail attribute apparently stores email addresses as links (prepends “https://”) and when called in header.php as:

    <span class="col-org"><a href="mailto:<?php echo esc_url( get_theme_mod('lz_charity_welfare_mail','') ); ?>"><i class="fas fa-envelope"></i><?php echo esc_html( get_theme_mod('lz_charity_welfare_mail','') ); ?></a></span>

    creates a clickable link like mailto:https://[email protected].

    • This topic was modified 4 years, 5 months ago by rtjensen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author luzuk Themes

    (@luzuk)

    Hello rtjensen,

    Use esc_attr instead of esc_url in email code then it will work properly.

    Thanks.

    Thread Starter rtjensen

    (@rtjensen)

    Thank you, that worked. I also did the same for lz_charity_welfare_call in the same location.

    Will that be fixed in the next version or will I have to redo my edits?

    Theme Author luzuk Themes

    (@luzuk)

    Yes, we will update our theme in the next version so that you don’t have to redo your edit.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email Stored As Link’ is closed to new replies.