Jump to content

[SOLVED]How to change the Home link


Recommended Posts

Hi,
I've installed a shop in a folder called SHOP, then changed the direct acces to the shop at my hosting so people can acces directly with "www.domain.com", but the shop is still in the folder, now I have a problem when clicking the Home link, it points to the SHOP folder, not the direct domain, so I get an error.
Do yo know how to solve this or where I do have to change the link? or can I hide this Home link?

Thanks in advance.

38810_HN7bhPpOJ1FkSplRHQjw_t

Link to comment
Share on other sites

  • 8 months later...

I am having the exact same problem. My entire site is not built in prestashop because there was no template that suited my needs. The user switches over to Prestashop when they click on a product. When you click on the "Home" link it takes you to the shop home instead of back to the main page of my site. I noticed that your post was rather old and nobody had commented on it. I am trying to figure out how to point this link to where i want it to go right now. If I get it figured out I will post the answer. If you have already figured it out please do the same and save me the trouble.

Link to comment
Share on other sites

I am having the exact same problem. My entire site is not built in prestashop because there was no template that suited my needs. The user switches over to Prestashop when they click on a product. When you click on the "Home" link it takes you to the shop home instead of back to the main page of my site. I noticed that your post was rather old and nobody had commented on it. I am trying to figure out how to point this link to where i want it to go right now. If I get it figured out I will post the answer. If you have already figured it out please do the same and save me the trouble.

Link to comment
Share on other sites

  • 2 months later...

Hi Mike

 

What I am trying to acheive is:

 

I have my Prestashop web site installed in a folder http://www.4staffordshire.com/shop/index.php

 

I want to change all references to the 'Home' link which points to the url above to

http:www.4staffordshire.com/index.php

 

which will take people back to my Joomla site home page (which is not installed yet)

 

Many thanks

 

BigHenry

Link to comment
Share on other sites

Ahh I see, so you want the header logo to direct your users somewhere other than the homepage of your shop.

 

In that case, please open your theme's header.tpl file (back it up first) and locate this line:

 

<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

 

Then, just replace $base_dir with the URL you would like to use instead, and let me know if that resolves your issue!

 

-Mike

Link to comment
Share on other sites

Hi Mike

 

Here is the code I have

 

<!-- Header -->

<div id="header">

<a id="header_logo" href="{$link->getPageLink('index.php')}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo" src="{$img_ps_dir}logo.jpg?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />

</a>

 

BigHenry

Link to comment
Share on other sites

×
×
  • Create New...