Jump to content

How to show top bar phone numbers on mobile devices


Recommended Posts

Hello,

 

Is there a possibility to display the phone number from the top bar on the mobile devices? Actually only the links Contact and Sign in are appearing on mobile devices and phone number cannot be seen.

 

Thank you!

Link to comment
Share on other sites

  • 3 months later...

Same problem here! (sorry about my poor english)

 

Prestashop set up to display:none if the width of device is down that 767px

 

you need change blockcontact.css:

.shop-phone {
  float: left;
  padding: 5px 0 10px;
  line-height: 18px; }
   @media (max-width: 767px) {
    .shop-phone {
      display: none; } }
  .shop-phone i {
    font-size: 21px;
    line-height: 21px;
    color: white;
    padding-right: 7px; }
  .shop-phone strong {
    color: white; }
Comment this lines:

  {* @media (max-width: 767px) {
    .shop-phone {
      display: none; } } *}

Ofcourse, you maybe want change the width in mobile devices:

 

#contact-link {
  float: right;
  border-left: 1px solid #515151; }
  @media (max-width: 479px) {
    #contact-link {
      width: 25%;
      text-align: center; } }
  #contact-link a {
    display: block;
    color: white;
    font-weight: bold;
    padding: 8px 10px 11px 10px;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    line-height: 18px; }
    @media (max-width: 479px) {
      #contact-link a {
        font-size: 11px;
        padding-left: 5px;
        padding-right: 5px; } }
    #contact-link a:hover, #contact-link a.active {
      background: #2b2b2b; }
Change width for #contact-link:

 

width: 35%;

Better with width:auto; Edited by daguilerastc (see edit history)
Link to comment
Share on other sites

  • 6 months later...
  • 5 months later...

Thank you very much daguilerastc! The css solution worked perfect. And I had been seraching for a way to the make phone numbers clickable.

Small deference in what I did. I changed only the yourtheme\modules\blockcontact\blockcontact.tpl

This change made all phone numbers on the page clickable. Nav/Header, Custom CMS Info Block & Footer.

I changed this line...

<span class="label">{l s='Phone:' mod='blockcontact'}</span>{$telnumber|escape:'html':'UTF-8'}

To this...

<span class="label"><a hre="contry+number"></a>{l s='Phone:' mod='blockcontact'}</span>{$telnumber|escape:'html':'UTF-8'}

using version 1.6.1.6

Link to comment
Share on other sites

  • 6 months later...

I need some Help with this http://tarheelfurnituregallery.com/ I lost all my ICONS I replace the awesome fonts and nothing..... It happened when I moved the logo turns the middle and making it bigger. I really don't know what to do.

 

If any one can help me also: I need to have the contact us telephone number for mobile device in the same area when is for desktop.

Thank you so much ahead.

Link to comment
Share on other sites

  • 1 year later...

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...