Jump to content

Edit History

nadie

nadie

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 

nadie

nadie

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

nadie

nadie

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

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

nadie

nadie

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

×
×
  • Create New...