Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Ironstone

    (@ironstonegardens)

    Sorted this now.

    Hi,
    how did you solve that?
    can you post some code example of using [phone] [/phone] ?

    Thanks

    Ironstone – what is the point of asking in a forum, post that you have figured it out yourself, and not posting the solution?

    Here’s how I got it to work for my theme, since the developer and the original poster seem checked out.

    <?php
        if (function_exists('wpmd_is_phone') && wpmd_is_phone()) {
            echo "<li><a class='phone' href='tel:" . ot_get_option('phonenumbercontent') . "'><span class='phone'>" . ot_get_option('phonenumbercontent') ."'</span></a></li>";
        } else {
            echo "<li><span class='phone'>" . ot_get_option('phonenumbercontent') . "</span></li>";
        }
    ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using shortcode in header.php’ is closed to new replies.