Jump to content

How to change Homepage link to something else?


Guest

Recommended Posts

A simple search would have resulted in this:

Go to skins/classic (or whatever skin)/styleTemplates/boxes/categories.tpl. You will see this code at the top...(code might vary depending on what skin).

<!-- BEGIN: categories -->

<div class="boxTitleLeft">{LANG_CATEGORY_TITLE}</div>

<div class="boxContentLeft">

<ul>

<li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

Replace "index.php" with "http://www.yoursite".

Link to comment
Share on other sites

A simple search would have resulted in this:

Go to skins/classic (or whatever skin)/styleTemplates/boxes/categories.tpl. You will see this code at the top...(code might vary depending on what skin).

<!-- BEGIN: categories -->

<div class="boxTitleLeft">{LANG_CATEGORY_TITLE}</div>

<div class="boxContentLeft">

<ul>

<li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

Replace "index.php" with "http://www.yoursite".

opps i'm sorry, i mean changing text >> Homepage to Home

Link to comment
Share on other sites

  • 3 weeks later...
Guest jeffdev

Then change {LANG_CATEGORY_TITLE} to Home, just leave out the brackets

Er, don't you mean change {LANG_HOME} to Home

I just wanted to put you straight cos I just needed to do this very same thing except I wanted to change the link to "Shop Homepage".

:lol:

Link to comment
Share on other sites

I would not tweak it in the template or skin. I'd tweak it in the language file itself. That way if you change skins or do an update that changes skins, your changes will follow with it. CC3 is modular for a reason. That reason is to separate content from design. By putting your content IN that design, you're breaking the idea.

Link to comment
Share on other sites

Specifically, in your shopping cart's root directory, look in the "language" folder, then in the "en" folder, and search for:

'homepage' => "Homepage",

Change the text in quotations ("Homepage") to whatever you want it to say, save the file and upload it to your server.

If you use another language than English, follow the same principle of course in the other languages (de, es, fi, etc.).

Link to comment
Share on other sites

Guest jeffdev

Thanks Mark.

I also want to add another link here.

I have used the suggested method to change "Homepage" to "Shop Homepage" now I need anorther link in the Categories box (I know this isn't the correct place but it's where my client wants the link) for the "Main Website" ??

Is this easy enough to add?

Jeff

Link to comment
Share on other sites

Very easy to add - but the only way I know is to hard-code it. You just add this line after the <ul> tag:

<li><a href="YOUR_SITE_URL">Main Website</a></li>




If you want the main website page to open in a new window, then use this (your store will remain in the original browser window):




<li><a href="YOUR_SITE_URL" target="_blank">Main Website</a></li>

Replace YOUR_SITE_URL with the actual URL for your client's site, of course :lol:

HTH, good luck!

Link to comment
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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