Jump to content

how to hide 'Contact Us' link on top left corner of header


venkatKesaboina

Recommended Posts

  • 1 month later...
En 15/10/2019 a las 3:28 PM, venkatKesaboina dijo:

want to hide Contact Us link on header, but not disable it.

Good night )

I guess after a month you have solved the problem.
Otherwise, I'll tell you under Prestashop 1.7 with the default template to remove the link (Contact Us) only from the header

spacer.png

 

You have several options

  1. Hide the link code in the tpl of the module
    File => /themes/your_template/modules/ps_contactinfo/nav.tpl
    Search for the following code:

     
     {if $contact_infos.phone}
          {* [1][/1] is for a HTML tag. *}
          {l
            s='Call us: [1]%phone%[/1]'
            sprintf=[
              '[1]' => '<span>',
              '[/1]' => '</span>',
              '%phone%' => $contact_infos.phone
            ]
            d='Shop.Theme.Global'
          }
        {else}
          <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a>
        {/if}

    Leave the code like this:
     

     {if $contact_infos.phone}
          {* [1][/1] is for a HTML tag. *}
          {l
            s='Call us: [1]%phone%[/1]'
            sprintf=[
              '[1]' => '<span>',
              '[/1]' => '</span>',
              '%phone%' => $contact_infos.phone
            ]
            d='Shop.Theme.Global'
          }
    {*    {else}
          <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a> *}
        {/if}

    I use {* *} for comment to comment the code.

    Once the file has been saved clear the cache in Advanced Parameters => Performance

     spacer.png


         By the way, If you add or configure the store phone in the panel, the link to the contact form in the header is not shown


2. Other choice => Remove module (ps_contactinfo) only from header

Tab  Design -> Positions => Hook displayNav1 => Unhook module (Contact information/ps_contactinfo)

spacer.png

**************
Information tested in PS 1.7.6.1 under the default template

I prefer option 1

----

By the way.. Maybe you're wondering... ¿Why not simply uninstall the module?

because the module shows information in the footer then if you uninstall the module the contact information in the footer will not be displayed 

Edited by nadie (see edit history)
Link to comment
Share on other sites

  • 1 year later...
On 11/23/2019 at 12:47 AM, nadie said:

Good night )

I guess after a month you have solved the problem.
Otherwise, I'll tell you under Prestashop 1.7 with the default template to remove the link (Contact Us) only from the header

spacer.png

 

You have several options

  1. Hide the link code in the tpl of the module
    File => /themes/your_template/modules/ps_contactinfo/nav.tpl
    Search for the following code:

     
    
     {if $contact_infos.phone}
          {* [1][/1] is for a HTML tag. *}
          {l
            s='Call us: [1]%phone%[/1]'
            sprintf=[
              '[1]' => '<span>',
              '[/1]' => '</span>',
              '%phone%' => $contact_infos.phone
            ]
            d='Shop.Theme.Global'
          }
        {else}
          <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a>
        {/if}

    Leave the code like this:
     

    
     {if $contact_infos.phone}
          {* [1][/1] is for a HTML tag. *}
          {l
            s='Call us: [1]%phone%[/1]'
            sprintf=[
              '[1]' => '<span>',
              '[/1]' => '</span>',
              '%phone%' => $contact_infos.phone
            ]
            d='Shop.Theme.Global'
          }
    {*    {else}
          <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a> *}
        {/if}

    I use {* *} for comment to comment the code.

    Once the file has been saved clear the cache in Advanced Parameters => Performance

     spacer.png


         By the way, If you add or configure the store phone in the panel, the link to the contact form in the header is not shown


2. Other choice => Remove module (ps_contactinfo) only from header

Tab  Design -> Positions => Hook displayNav1 => Unhook module (Contact information/ps_contactinfo)

spacer.png

**************
Information tested in PS 1.7.6.1 under the default template

I prefer option 1

----

By the way.. Maybe you're wondering... ¿Why not simply uninstall the module?

because the module shows information in the footer then if you uninstall the module the contact information in the footer will not be displayed 

Hi. I just came across this post while trying to figure out how to make the 'Call Us' feature NOT disappear.
Contact us appears fine on the homepage ( https://rayspages.xyz ) but disappears on every other.
Is there a way I can stop this happening so it's constantly on show?

Cheers in advance to any responders :)

Link to comment
Share on other sites

  • 4 months later...

hi there, i need urgent help please, i had same problem, and cant remember how i sorted out, but now seen contact info on footer disapeared, tried everything even uninstalling and installing again contactinfo module, i put it on footer hook but wont show... all files in ps_contactinfo folder in theme folder have no code in them......

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