WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Customer Reviews] hcaard: click-to-call format phone numbers?

[Plugin: WP Customer Reviews] hcaard: click-to-call format phone numbers?

Viewing 1 replies (of 1 total)
  • salty-sailor
    Participant

    @salty-sailor

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Customer Reviews] hcaard: click-to-call format phone numbers?’ is closed to new replies.