• I want to be able to add a tel tag to the phone number on the front-page so when users find the site on their phone they can call.

    I am having difficulty locating where in the code to add that tag.

    https://pasteboard.co/cB13LS2wu.jpg

    The site is currently under construction and I would rather not take off construction mode for fear of patients starting to call.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    For this find below code in index-service.php file line no 15

    <span><?php echo esc_attr($current_options['call_now_number']); ?></span>

    and replace with below code

    <span><?php echo $current_options['call_now_number']; ?></span>

    then find below code in service-panel.php (Theme Package >> functions >> customizer >> service-panel.php) file line no 115

    ‘sanitize_callback’ => ‘sanitize_text_field’,

    then remove above code and save service-panel.php file.

    Any confusion let me know

    Thanks.

    Theme Author webriti

    (@priyanshumittal)

    Its better if you do those changes from child theme instead of doing directly in parent theme. Because as when you update the parent theme you will loose these core changes.

    Thanks
    Priyanshu

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making Phone Number on front-page callable’ is closed to new replies.