WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
hcaard: click-to-call format phone numbers? (2 posts)

  1. helices
    Member
    Posted 2 years ago #

    How can I format my hcard phone number as click-to-call?

    This is how I do it in HTML:

    <a href="tel:612-235-6060" style="text-decoration:none;">612-235-6060</a>

    TIA

    http://wordpress.org/extend/plugins/wp-customer-reviews/

  2. salty-sailor
    Member
    Posted 1 year ago #

    In wp-customer-reviews.php, I swapped

    if ($this->options['business_phone'] != '') {
                        $aggregate_footer_output .= '<span class="tel">' . $this->options['business_phone'] . '</span>';
                    }

    for

    if ($this->options['business_phone'] != '') {
                        $aggregate_footer_output .= '<span class="tel"><span class="type">Work</span><span class="value"><a href="tel:' .  $this->options['business_phone'] . '">' . $this->options['business_phone'] . '</a></span></span>';
                    }

    See it live here. Parses correctly in Firefox's Operator extension and in Microformats for Google Chrome.
    Kindly mark this as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic