Jump to content

Add contact telephone Number on Main Page


Recommended Posts

  • 3 months later...

Absolutely. So may sites have the contact number at the very top of site near the logo so it appears on every page. Really important for e-commerce sites in my eyes. Sure there has to be a way of doing this.

Link to comment
Share on other sites

If the information is fixed, you can always do the hard code.
If u want to do it urselrf, just open file header.tpl in your template folder (usually in \themes\prestashop)

Find this line


    {$HOOK_TOP}


BEFORE

, write this code



Opening Hour

   8am - 4pm

Phone

   +1234567




U can modify the context (opening hour n phone #), or the position by changing margin-left n margin-top value depends on ur website's template. Then save the file, and refresh ur page.

If u still confused, feel free to contact me at irfan_bahalwan (YM!)

Link to comment
Share on other sites

Hello

Many thanks for your answer. Helped me add my phone number to the top right of the site.

One problem I have is when I scroll down down the page the number follows me in that position which is not ideal. I just want it to stay at the top right of the site under the search bar.

Do you know how i can do this please?

(SOLVED) Figured it out. Just change position fixed to position absolute instead. Worked for me.

Thanks again

Link to comment
Share on other sites

Honestly, It's kinda hard to explain if you dont know HTML and CSS. U must upload the image, change some code in header.tpl, add some line into css/global.css

It'll be a lot easier if u can IM me, so I can provide u the steps.

But if you insist, just do this steps :

- Upload your image into themes/theme-that-u-use/img/ folder
for this example, we use a picture named small_logo.jpg

- Open your header.tpl file in the themes/theme-that-u-use/ folder
Change the previous code

Opening Hour

   8am - 4pm

Phone

   +1234567
 



into this one

Opening Hour

   8am - 4pm

Phone

   +1234567
 




- Open your global.css file at themes/theme-that-u-use/css/ folder
Add this code into the last line

.opening_hour
{   background:url(../img/small_logo.jpg) 1px 2px no-repeat;
   position:absolute; 
   margin-left:230px; 
   margin-top:30px;
   padding-left:30px;
}    



You can change the margin, padding, and image position (1px 2px) value

Hope this could work :)

Link to comment
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
×
×
  • Create New...