Phone link in home page
This support request was posted in Paeon by andreapatricelli88
- andreapatricelli88 November 1, 2023 at 11:36 am
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,
AndreaJuanfra Aldasoro November 13, 2023 at 1:32 pmHi 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 November 14, 2023 at 1:52 pmHi,
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.