Jump to content

prestashop 1.7 how to modify top bar


ps2k11

Recommended Posts

7 hours ago, ican said:

 

You can modify it from header.tpl and .tpl files of related module in header section.

 

I see quite a few header.tpl which one ? what is the related module ?

As Prestashop come to the point of program it yourself ? why no option in back office ?

Link to comment
Share on other sites

31 minutes ago, Knowband Plugins said:

header.tpl file path in the default theme

themes/classic/templates/_partials/header.tpl (Check the same according to your theme).

I would suggest changing the same only if you have the coding/HTML/CSS knowledge. 

 

basically want to delete of the links above contact us that point to prestashop facebook and where it says free shipping, map store location

when I do inspect element in firefox I see this

div class =nav-shipping map   div id = social block nav

Image2.jpg

Link to comment
Share on other sites

9 minutes ago, ps2k11 said:

 

basically want to delete of the links above contact us that point to prestashop facebook and where it says free shipping, map store location

when I do inspect element in firefox I see this

div class =nav-shipping map   div id = social block nav

Image2.jpg

 

Remove it from hook in config/theme.yml file

Link to comment
Share on other sites

9 minutes ago, ican said:

 

Remove it from hook in config/theme.yml file

 

I see a bunch of hooks in config/theme.yml file. so basically play around till you find the right ones  ?

All I see are these

      displayNav1:
        - ps_contactinfo
      displayNav2:
        - ps_languageselector
        - ps_currencyselector
        - ps_customersignin
        - ps_shoppingcart
      displayTop:
        - ps_mainmenu
        - ps_searchbar
      displayHome:
        - ps_imageslider
        - ps_featuredproducts
        - ps_banner
        - ps_customtext
      displayFooterBefore:
        - ps_emailsubscription
        - ps_socialfollow
      displayFooter:
        - ps_linklist
        - ps_customeraccountlinks
        - ps_contactinfo
      displayLeftColumn:
        - ps_categorytree
        - ps_facetedsearch
      displaySearch:
        - ps_searchbar
      displayProductAdditionalInfo:
        - ps_sharebuttons
      displayReassurance:
        - blockreassurance
      displayOrderConfirmation2:
        - ps_featuredproducts
      displayCrossSellingShoppingCart:
        - ps_featuredproducts

 

Edited by ps2k11
more info (see edit history)
Link to comment
Share on other sites

1 minute ago, ican said:

Can you please share the hooks defined there?

 

      displayNav1:
        - ps_contactinfo
      displayNav2:
        - ps_languageselector
        - ps_currencyselector
        - ps_customersignin
        - ps_shoppingcart
      displayTop:
        - ps_mainmenu
        - ps_searchbar
      displayHome:
        - ps_imageslider
        - ps_featuredproducts
        - ps_banner
        - ps_customtext
      displayFooterBefore:
        - ps_emailsubscription
        - ps_socialfollow
      displayFooter:
        - ps_linklist
        - ps_customeraccountlinks
        - ps_contactinfo
      displayLeftColumn:
        - ps_categorytree
        - ps_facetedsearch
      displaySearch:
        - ps_searchbar
      displayProductAdditionalInfo:
        - ps_sharebuttons
      displayReassurance:
        - blockreassurance
      displayOrderConfirmation2:
        - ps_featuredproducts
      displayCrossSellingShoppingCart:
        - ps_featuredproducts

Link to comment
Share on other sites

2 minutes ago, ps2k11 said:

 

      displayNav1:
        - ps_contactinfo
      displayNav2:
        - ps_languageselector
        - ps_currencyselector
        - ps_customersignin
        - ps_shoppingcart
      displayTop:
        - ps_mainmenu
        - ps_searchbar
      displayHome:
        - ps_imageslider
        - ps_featuredproducts
        - ps_banner
        - ps_customtext
      displayFooterBefore:
        - ps_emailsubscription
        - ps_socialfollow
      displayFooter:
        - ps_linklist
        - ps_customeraccountlinks
        - ps_contactinfo
      displayLeftColumn:
        - ps_categorytree
        - ps_facetedsearch
      displaySearch:
        - ps_searchbar
      displayProductAdditionalInfo:
        - ps_sharebuttons
      displayReassurance:
        - blockreassurance
      displayOrderConfirmation2:
        - ps_featuredproducts
      displayCrossSellingShoppingCart:
        - ps_featuredproducts

 

Remove - ps_contactinfo  from displayNav1

and have you changed in any .tpl file ?

Link to comment
Share on other sites

31 minutes ago, ican said:

 

Remove - ps_contactinfo  from displayNav1

and have you changed in any .tpl file ?

 

no changes in .tpl,

removing ps_contactinfo does nothing, still the same

also trying to remove this pic where it say support or modify it

 

Image3.jpg

Edited by ps2k11
more info (see edit history)
Link to comment
Share on other sites

Kindly go to Admin -> Design -> Position.

Search for displayNav1 & displayNav2 respectively & share the screenshot. Just need to check the hooks which are added on displayNav1 & displayNav2 position.

Apart from that, I think Social links (Icons just above the contact us) can be removed by disabling the "Social media follow links" module.

  • Thanks 2
Link to comment
Share on other sites

1 hour ago, Knowband Plugins said:

Kindly go to Admin -> Design -> Position.

Search for displayNav1 & displayNav2 respectively & share the screenshot. Just need to check the hooks which are added on displayNav1 & displayNav2 position.

Apart from that, I think Social links (Icons just above the contact us) can be removed by disabling the "Social media follow links" module.

 

This is very strange. I found a free theme, installed it but was causing some problem, better looking than classic

The free theme had the same problems for nav1 and nav2

when I put back the classic theme it fixed all the nav1 and nav2 problems, I suspect wtcustomhtmt that I see in new theme

wtcustomhtml not there in nav1 and nav2 when I put back classic

 

 

Image4.jpg

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
On 8/18/2018 at 7:26 PM, Knowband Plugins said:

Kindly go to Admin -> Design -> Position.

Search for displayNav1 & displayNav2 respectively & share the screenshot. Just need to check the hooks which are added on displayNav1 & displayNav2 position.

Apart from that, I think Social links (Icons just above the contact us) can be removed by disabling the "Social media follow links" module.

Thank you!!!!! You have no idea how much you've helped me. 🥳

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