Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Why you don’t like them? I mean the user can dial quickly with them.

    Thread Starter Evans Junatan

    (@evans-junatan)

    Thank you for your fast respond. Because I replace the phone number with a PIN Blackberry, and replace cellphone number with WhatsApp numbers. I just want to chat with a customer without talks over the phone. Thank you.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Not a good practice to misuse the fields. Their links has a special functionality to work properly. Links to WhatsApp has theirs.

    The right way is adding such entries in the bar, either by me with a next upgrade or by you via the hooks.

    What is a “PIN Blackberry”?

    Thread Starter Evans Junatan

    (@evans-junatan)

    I really do not want to use the link in the plugins speed contact bar. because I did not use to link to the “Personal Identification Number” Blackberry and WhatsApp number.
    The following link on Blackberry PIN: https://helpblog.blackberry.com/2011/10/identify-blackberry-pin/
    Thank you.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Just a simple question for my understanding: Do you just want to display the PIN and WhatApps number for informational purpose, without any functionality?

    Thread Starter Evans Junatan

    (@evans-junatan)

    Yes, that is true. How can I do that? Thank you.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    The fastest way is: Omit the phone number fields and use that code in the functions.php of your theme. Replace [number] and [pin] with your data:

    function my_speed_contact_bar_data ( $list_items ) {
    
        // add the items as last items in the list, via $array[]
        // the content has to be surrounded by the LI element
        $list_items[] = '<li>WhatApps: [number]</li>';
        $list_items[] = '<li>Blackberry PIN: [pin]</li>';
    
        // return the extended list
        return $list_items;
    
    }
    
    // only use one of the both following lines:
    // either: add the new items to the personal data (phone number etc.)
    add_filter( 'speed_contact_bar_data', 'my_speed_contact_bar_data' );
    
    // or: add the new items to the social media icons list
    add_filter( 'speed_contact_bar_icons', 'my_speed_contact_bar_data' );
    Thread Starter Evans Junatan

    (@evans-junatan)

    Thank you for your fastest answer.

    I have tried the above script, but does not seem good. I tried to change phone number with PIN and cellphone numbers with WA. It’s just how to remove the link to that number? I include screenshots.

    Thank you.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Any new insights? If everythink is ok I will mark that topic as resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to disable link?’ is closed to new replies.