Jump to content

How to customize top permanent links


Recommended Posts

I'm new to Prestashop and I installed the fresh Prestashop 1.4.7 and trying to customize top permanent links and footer links. So I tried to modify blockpermanentlinks-header.tpl and blockpermanentlinks.tpl files. I wanted to get rid of sitemape and bookmark links and instead I wanted to put Home button and "About Us" button. So I opened up those tpl files in Dreamweaver and I removed the whole li tags for sitemap and bookmark but nothing changed. The top permanent link menu still displays sitemap and bookmark links. Did I supposed to edit different files rather than blockpermanentlinks-header.tpl or blockpermanentlinks.tpl?

I just don't understand why it doesn't change anything after editing those files.

 

---------------------------------------------------------------------------------------------------------------------------

 

<!-- Block permanent links module HEADER -->

<ul id="header_links">

<li id="header_link_contact"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>

</ul>

<!-- /Block permanent links module HEADER -->

 

<!-- Block permanent links module -->

<div id="permanent_links">

<!-- Contact -->

<div class="contact">

<a href="{$link->getPageLink('contact-form.php', true)}"><img src="{$img_dir}icon/contact.gif" alt="{l s='contact' mod='blockpermanentlinks'}" title="{l s='contact' mod='blockpermanentlinks'}" /></a> 

<a href="{$link->getPageLink('contact-form.php', true)}">{l s='contact' mod='blockpermanentlinks'}</a>

</div>

</div>

<!-- /Block permanent links module -->

Link to comment
Share on other sites

I just want to get rid of sitemape and bookmark links from the top menu and put Home button and "About Us" button. But my modification didn't change anything. I removed the following code from blockpermanentlinks-header.tpl but I still see sitemap and bookmark link button on the top menu. What did I do wrong? Do I need to edit a different file to modify top menu?

 

 

<li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap.php')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li>

<li id="header_link_bookmark">

<script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');</script>

</li>

  • Like 1
Link to comment
Share on other sites

Hi bonnie,

You actually don't need to go into the code to do this B) . For the top menu, all you need to do is go to the Modules page of your Back Office and edit that through the Top Horizontal Menu module. There, you can rearrange the order of links, delete existing ones or even add your own.

 

I hope this helps.

 

-Mike

Link to comment
Share on other sites

Where should I exactly go to edit the top block permanent link menu?

Because I already checked the back office before I tried to edit this tpl files, but I couldn't figure out how to edit it. I went to Modules -> Positions -> Show: Permanent links block -> Header of pages - 1 module -> click edit button.

But I didn't know how to edit those. In Back Office > Modules > Positions, I see "Module", "Hook into", and Exceptions but I don't seem to be able to edit anything there. Do I need to go to a different page to modify the top permanent link menus?

Link to comment
Share on other sites

  • 1 month later...

and edit that through the Top Horizontal Menu module

 

I don't get it either - there is no page called that that allows for a way to modify the sitemap settings.

It's kind of awkward that the "sitemap" and "contact" pages cannot be added to the other footer links.

 

Here's a screencap : https://minus.com/m6TyJXNUG/7f

 

Please review this post and give a solution if you have one! thanks :)

Link to comment
Share on other sites

Hi there

 

I am very much a beginner, but I think you are looking in the wrong section. Dont go to Modules » Positions etc

 

Just go to Modules main tab, then open the full list of modules from the various sections there. Top Menu will be in "Other Modules" or "Front Office Functionality" (or the english equivvalent). From there you can configure the Top Menu links easily.

 

Hope that helps

 

V

 

www.ecokidz.fr

PS 1.4.6.2

Link to comment
Share on other sites

  • 2 months later...

I don't get it either - there is no page called that that allows for a way to modify the sitemap settings.

It's kind of awkward that the "sitemap" and "contact" pages cannot be added to the other footer links.

 

Here's a screencap : https://minus.com/m6TyJXNUG/7f

 

Please review this post and give a solution if you have one! thanks :)

do u get any solution for this prob ???
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

@Mike Thanks for your reply. My shop is not public yet. I'm using the default theme with Prestashop version 1.4.8.2.

 

There is no module of this name that I can find in my Back Office or in the Prestashop Module Directory (see attached screenshots) or even if I google it.

Link to comment
Share on other sites

@Mike Thanks for your reply. My shop is not public yet. I'm using the default theme with Prestashop version 1.4.8.2.

 

There is no module of this name that I can find in my Back Office or in the Prestashop Module Directory (see attached screenshots) or even if I google it.

 

I don't see any screenshots here, but try our attachment system under "More Reply Options." That should definitely simplify the process for you so that we can best help you out with this.

 

-Mike

Link to comment
Share on other sites

@Mike Thanks for your reply. My shop is not public yet. I'm using the default theme with Prestashop version 1.4.8.2.

 

There is no module of this name that I can find in my Back Office or in the Prestashop Module Directory (see attached screenshots) or even if I google it.

 

I think some people here have missed the important info your post, you stated that you are using 1.4.8.2 with the default theme, that theme does not have a top horizontal menu as standard you will need to switch to the 1.4 alt theme or install a top horizontal menu.

 

http://addons.presta...es-prestashop#/

 

This is the top horizontal menu from the 1.5 theme and should work with your 1.4 theme.

 

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

I see, thanks for the info and for the file! It doesn't seem to be available through the addons directory and I'm not sure why it's not included in the latest installation they're offering on prestashop.com but at least I have it now :)

Link to comment
Share on other sites

  • 3 months later...

I can't imagine you are SO BAD at understanding what he wants to do!

Stop talking about the top horizontal menu. It's not that he's trying to edit!!!

 

What he wants to modify is the permanent links block at the very page top.

 

Newbie: Go to modules > blockpermanentlinks in your site, and edit the file blockpermanentlinks-header.tpl

 

This is how you edit your permanent links block.

 

Unfortunately, there's no other way to do so, even in 1.5.2.

  • Like 2
Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...

hi me to having the same issue..! please any one would help me out. I have a top horizontal menu module but it is given for navigation..! i could not find top menu in modules i have searched in front office feautures , other modules but could not see..!can any one help me how to change the links in top i.e the sitemap,bookmarks links..I need to delete them and keep my cart ,my account block,my wishlist, check out,login..so help me out please

Link to comment
Share on other sites

  • 2 weeks later...

hi my first post..

I can't imagine you are SO BAD at understanding what he wants to do!

Stop talking about the top horizontal menu. It's not that he's trying to edit!!!

 

What he wants to modify is the permanent links block at the very page top.

 

Newbie: Go to modules > blockpermanentlinks in your site, and edit the file blockpermanentlinks-header.tpl

 

This is how you edit your permanent links block.

 

Unfortunately, there's no other way to do so, even in 1.5.2.

 

yep 100% working but if the template has its own module blockpermanentlinks we need to edit themes/nameX/modules/blockpermanentlinks/blockpermanentlinks-header.tpl

;)

Link to comment
Share on other sites

  • 3 months later...

 

yep 100% working but if the template has its own module blockpermanentlinks we need to edit themes/nameX/modules/blockpermanentlinks/blockpermanentlinks-header.tpl

;)

 

Hi, I am trying to edit the links circled here http://www.ethical-pets-wholesale.co.uk/share/Screenshot%20from%202013-07-13%2013:59:55.png .

 

Prestashop calls them "cms" links.

 

I have found the blockpermanentlinks-header.tpl file you mentioned, and looked at it. I am trying to make the link to "About" go to /www.ethical-pets-wholesale.co.uk/blog rather than the cms page. I tried simply adding a normal <a href etc to the li in the /blockpermanentlinks-header.tpl file but it had no effect. I deleted all the links to see what would happen and that had not effect either.

 

am I working on the correct file for my task? If so, what do i need to do? if not, what do i need to do :)

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

In this topic Superstar, Jamesbond007, Spiderman and so many hero's are there, but no solution found to fix. Also in another topic 

 

http://www.prestashop.com/forums/topic/285530-solved-adding-links-to-the-permalink/?hl=%2Bpermanent+%2Blinks+%2Bblock&do=findComment&comment=1440437

 

fix is not working, i don't know who's problem either Prestashop or Theme maker.

 

Let me see which Hero is Helping to Solve this topic.

:ph34r:  :ph34r:  :ph34r:  :ph34r:  :ph34r:

Link to comment
Share on other sites

  • 2 weeks later...

I have found that to add to the permanent links you need to the .tpl file

 

Mine looks like this 

<!-- Block permanent links module HEADER -->
<ul id="header_links">
	<li class="home"><a href="{$base_dir}"></a></li>
	<li id="header_link_contact"><a href="{$link->getPageLink('contact', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>
	<li id="header_link_contact"><a href="{$link->getPageLink('prices-drop', true)}" title="{l s='Specials' mod='blockpermanentlinks'}">{l s='Specials' mod='blockpermanentlinks'}</a></li>
<!-- <li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li> -->
	<li id="header_link_bookmark">
		<script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks' js=1}');</script>
	</li>
</ul>
<!-- /Block permanent links module HEADER -->

The end result is the picture attached.  

 

I never used Top Menu - when I did - nothing changed on the site.

Is that an issue?

 

post-613669-0-72566800-1387124593_thumb.png

Link to comment
Share on other sites

  • 2 weeks later...

Hi Guys, okay so we have now discovered that in order to remove the contact us / site map etc ,we need to edit the file 

 

themes/nameX/modules/blockpermanentlinks/blockpermanentlinks-header.tpl

 

Okay thats good, but how do we replace the code to show " We ship to Xxxx Country" using geolocation (which is builtinto prestashop BO)?

 

<!-- Block permanent links module HEADER -->
<ul id="header_links" class="hidden-phone">
<li id="header_link_contact"><a href="{$link->getPageLink('contact', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>*
<li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li>
 
<li>
<form method="post" action="{$link->getPageLink('products-comparison')}" onsubmit="true" >
<p>
<input type="submit" id="bt_compare"  value="{l s='Compare' mod='blockpermanentlinks'}" />
<input type="hidden" name="compare_product_list" class="compare_product_list" value="" />
</p>
</form>
</li>
</ul>
<!-- /Block permanent links module HEADER -->
Link to comment
Share on other sites

  • 3 months later...

Hello to all, how do I change the url to the login authentication my account? I have a MultiShop and would like to set up two links in the header: Customer and Business. Customer is ok directs to the main home, business must address to the subfolder / shop how do I do this? I can not find where to change the file url

Link to comment
Share on other sites

  • 1 month later...

did anyone find a solution to this? its extremely aggravating that in 2014 we are having a very long discussion about how to change a friggin simple menu. My god i wish i would have never convinced my client to switch from wordpress or joomla. Geeze. 

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...