nelsons 0 Report post Posted October 25, 2010 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 Report post Posted October 25, 2010 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 Report post Posted October 25, 2010 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 Report post Posted October 26, 2010 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 Report post Posted October 26, 2010 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
cmunns 16 Report post Posted October 26, 2010 Steve, Sorry let me explain further. I was alluding to a sample hook in the functions.php file of the Base Customization theme. You should be using the Base customization theme if you are not already. Then in the functions.php remove the `` for the stumbleupon stuff and just put your phone number instead. Is that more clear? Share this post Link to post Share on other sites
nelsons 0 Report post Posted October 26, 2010 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 Report post Posted October 26, 2010 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(){?> <?php } ` Share this post Link to post Share on other sites
nelsons 0 Report post Posted October 26, 2010 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 Report post Posted October 26, 2010 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 Report post Posted October 26, 2010 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 Report post Posted October 27, 2010 Hi Steve, did that do the trick? Thanks, Bryan Share this post Link to post Share on other sites
nelsons 0 Report post Posted October 27, 2010 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 Report post Posted October 28, 2010 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 Report post Posted October 28, 2010 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 Report post Posted October 28, 2010 html img code would be like this `` 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 Report post Posted October 28, 2010 A clue to which file to edit would be useful. Share this post Link to post Share on other sites
nelsons 0 Report post Posted October 28, 2010 I solved this myself after using various online resources. Thanks. Share this post Link to post Share on other sites