Jump to content
Sign in to follow this  
nelsons

Telephone Number Image Above Social Media Icons.

Recommended Posts

nelsons    0
nelsons

Hi I have read the post about adding your telephone number above the social media icons. I want to ask how I would go about adding our telephone number as an image above those icons. Thanks Steve

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

You would use a hook to add it. You could even just place the number in the sample hook provided by the BASE theme. remove the HTML for the stubmleupon icon and place your number instead. This will get you close.

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

What's a hook? Can you provide sample code please ? Many thanks Steve

Share this post


Link to post
Share on other sites
bryan-hadaway    3
bryan-hadaway

I'm not sure which tutorial you saw, can I get a link? You might just be able to adapt it to your need. Thanks, Bryan

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

Hi Bryan, That's not exactly the answer I was looking for, I am not a web designer at all and having paid 179 dollars for my package I was really looking for a practical example of what code I would need and where it should be added. Thanks Steve

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

Hi, Yes that makes a little more sense, however I have already removed the stumbleupon logo and don't know where the code was.. Also is it possible to have the image held as part of wordpress in the media area ? Thanks

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

Yes that is absolutely possible. Then you would take that image and use this hook. ` add_action('pagelines_branding_icons_end', 'phone_number'); function phone_number(){?> path to uploaded image <?php } `

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

HELP !!! I have done what you said and my site is now totally hosed.. Here is the error. Parse error: syntax error, unexpected '<' in /nfs/c07/h04/mnt/110843/domains/blog.calibre-secured.net/html/wp-content/themes/platformbase/functions.php on line 35

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

I fixed this by adding a copy of the functions.php that I had from the original theme... Sadly still no phone number image :-(

Share this post


Link to post
Share on other sites
kitty73    0
kitty73

Hi Steve, Here's the thread with the code I used - it has exact instructions on what to do http://www.pagelines.com/forum/topic.php?id=3200 For my personal site (http://www.londonhypnotherapypartnership.co.uk/), I just used copy as follows: Book a free consultation for one of our treatments <h2>Call us now on </h2><h1>020 7467 8355</h1> Hope this helps Kate

Share this post


Link to post
Share on other sites
bryan-hadaway    3
bryan-hadaway

Hi Steve, did that do the trick? Thanks, Bryan

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

Hi Bryan, Thats a text telephone number, what I want is an image so it stands out more.. Can you help ? Ta S

Share this post


Link to post
Share on other sites
bryan-hadaway    3
bryan-hadaway

Right, this can be done easily. Give me the URL of the image and I'll give you precise instructions to get the effect you want. Thanks, Bryan

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

Hi Bryan. I don't have the image URL as of yet I was hoping to include it in the media area of wordpress. Is this ok ? For the sake of creating the code lets assume the image is called phone_number.jpg The site is at http://blog.calibre-secured.net Thanks Steve

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

html img code would be like this `phone_number` of course you place the media name there and maybe even the actual phone number as the alt text when the image doesn't show up

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

A clue to which file to edit would be useful.

Share this post


Link to post
Share on other sites
nelsons    0
nelsons

I solved this myself after using various online resources. Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×