- This topic has 15 replies, 3 voices, and was last updated 3 years, 4 months ago by Leo.
-
AuthorPosts
-
November 21, 2020 at 11:02 am #1540347Tania
https://www.smartchampstuition.co.uk/
I want to add clickable phone number and email on top of primary navigation towards right. So clients can call.
Also how I can add clickable phone number as a button and as clickable text in footer and on contact page..
Right now the phone number dials +10000000000 which was entered on GP sample services site. How I can change this. I tried it has not worked.
I also want its colour change when hover, on contact page.
November 21, 2020 at 3:16 pm #1540493TaniaI tried to add clickable phone and email using top bar. However, I the top bar vanishes when you scroll, how can I make top bar sticky? on mobile and desktop.
Please reply thanks a lot.
November 21, 2020 at 7:30 pm #1540572Taniaplease can you help?
November 21, 2020 at 7:31 pm #1540573LeoStaffCustomer SupportHi there,
I want to add clickable phone number and email on top of primary navigation towards right.
Try this:
– Create a hook element:
https://docs.generatepress.com/article/hooks-element-overview/– Add this as the content:
<div class="sticky-phone"> phone number here </div>
– Select the
generate_inside_navigation
hook in the Hook dropdown list.– Set priority to 2.
– Add this CSS:
.sticky-phone { width: 100%; text-align: right; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps π
November 21, 2020 at 7:36 pm #1540575TaniaPlease have aa look what I did. I have added html for other clickable phone numbers.
Shall I take top bar off, I added through the top bar which I can’t make it sticky as when scrolling down, the top bar disappear.?
November 21, 2020 at 7:44 pm #1540583LeoStaffCustomer SupportShall I take top bar off
Yes – then follow the exact steps I’ve described here:
https://generatepress.com/forums/topic/click-able-phone-button-and-clickable-phone-number-without-button/#post-1540573November 21, 2020 at 7:46 pm #1540584Taniathanks a lot.
November 21, 2020 at 7:47 pm #1540585LeoStaffCustomer SupportNo problem π
Please note that we answer every topic within 24 hours – most of the time it’s much shorter.
It is also Saturday here so we appreciate your patience π
November 21, 2020 at 8:04 pm #1540592TaniaIs there a way to make phone clickable, so number could be called on mobile?
Many thanks
November 21, 2020 at 8:10 pm #1540593LeoStaffCustomer SupportNovember 21, 2020 at 8:32 pm #1540600Taniathanks. I wanted phone number sticky on the right side, above the blog contact navigation.
However this appears on the left before the site logo. I tried to move before navigation altering the hook, then it is on the page hero above navigation as my navigation is on top of the page heroes. Not ideal..
November 21, 2020 at 9:58 pm #1540667LeoStaffCustomer SupportMy CSS should work.
It’s not working as you’ve wrapped in with the previous media query:
https://www.screencast.com/t/XtVSMeiJjClgCan you make sure the previous media query is closed with a
}
?November 22, 2020 at 2:30 am #1540775TaniaLeo. Thanks a lot for your help.
Exactly, I have seen that, closed the previous enquiry. CSS has worked fine. I added some padding in the CSS.
Now I want to add phone icon on the left side of the phone number. Shall I start new enquiry?
November 22, 2020 at 6:45 am #1540932DavidStaffCustomer SupportHi there.
as you have the Lightweight Social Icons plugin installed, and that has a phone icon we can use its code on your anchor element. So this:
<a href="tel:02034887476">Call Us On: 020 3488 7476</a>
becomes:
<a href="tel:02034887476"><i class="lsicon lsicon-phone"></i> Call Us On: 020 3488 7476</a>
November 22, 2020 at 11:21 am #1541402TaniaThanks a lot David for your time and patience.
It was awesome.
-
AuthorPosts
- You must be logged in to reply to this topic.