WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. helices
    Member
    Posted 4 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 3 years 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

  • WP Customer Reviews
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic