Jump to content
venkatKesaboina

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

Recommended Posts

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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More