Phone link in home page

This support request was posted in Paeon by andreapatricelli88

Request ID #42299 In Progress
  • andreapatricelli88

    Hi all,

    how can I add a clickable phone number in home page just after the slider, preferably a phone icon?
    I have no social links
    And how to show it on mobile view, at the moment nothing is shown.

    Thanks and regards,
    Andrea

    Hi Andrea,

    I hope you’re doing well.

    To have the phone number on the home page clickable, you’ll need to customize the template-home.php file and then use an HTML link with the tel: prefix in the link.

    It should look something like this

    <span class="call-number"><a href="tel:<?php echo esc_attr( $nice_options['nice_phone_number'] )"><?php echo esc_html( $nice_options['nice_phone_number'] ); ?></a></span>
    

    Best,
    Juan.

    andreapatricelli88

    Hi,

    thank you very much, it worked!
    You can close the ticket.

    Best regards,
    Andrea

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server