Forums / Templates, Stylesheets, Page Layout / Change the logo link?

Change the logo link?

Locked

Views: 2,597

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
15 Oct 2007, 1:39 AM
#1
pomzie avatar

pomzie

New Zenner

Join Date:
Oct 2007
Location:
Central Texas
Posts:
11
Plugin Contributions:
0

Change the logo link?

I'm hoping someone can help me out. I have an index.html page that is my main page which links to my Zen Cart stuff. I've noticed on the Zen Cart pages, the logo links to the Zen Cart main page.

Where do I go to change this link so that it goes to my index.html page?

15 Oct 2007, 2:27 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change the logo link?

In a copy of the tpl_header.php file located i the template common folder change this href

<!--bof-branding display-->
<div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

Zen-Venom Get Bitten

15 Oct 2007, 3:35 AM
#3
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

Re: Change the logo link?

LoL, I logged in for asking almost the same question. I checked the code by kobra, but it looks like it's the same as in original tpl_header.php. Is it just me? Am I unable to see the difference?

What I really would like to do is just the opposite of what Pomzie described. I noticed that, unlike Pomzie said, when I include an index.html in root, Zen Cart displays this index.html when clicked, but not the index.php. I would like it to display index.php instead. Any ideas?

Thanks in advance! :)

15 Oct 2007, 3:40 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change the logo link?

What I really would like to do is just the opposite of what Pomzie described. I noticed that, unlike Pomzie said, when I include an index.html in root, Zen Cart displays this index.html when clicked, but not the index.php. I would like it to display index.php instead.
This is standard - to link back to index.php and you should not have to change anything.

Yes the code I posted is the default code and was provided for info as to where the href is located that would require changing if you did not want index.php referenced

Zen-Venom Get Bitten

15 Oct 2007, 4:12 AM
#5
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

Re: Change the logo link?

kobra:

This is standard - to link back to index.php and you should not have to change anything.

Yes the code I posted is the default code and was provided for info as to where the href is located that would require changing if you did not want index.php referenced
Thank you for the quick reply! I haven't modified any default file, but the logo opens the index.html, not index.php when clicked. The fact is, it opens http://localhost (I use my laptop to design the site), which catches index.html by default. Why I would like to do is to hardwire the logo link to index.php. All comments will be appreciated!

Thanks again!

15 Oct 2007, 5:33 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change the logo link?

The fact is, it opens http://localhost (I use my laptop to design the site), which catches index.html by default.
This still should not happen....

I have never used a htaccess for a local but if they are used you might see what it has for access or remove it tempoarily.

The default code is coded to make this happen and keeps the cart mobile so the you can move it betewwn directories and servers with out issues

Zen-Venom Get Bitten

18 Oct 2007, 12:58 PM
#7
pomzie avatar

pomzie

New Zenner

Join Date:
Oct 2007
Location:
Central Texas
Posts:
11
Plugin Contributions:
0

Re: Change the logo link?

Thank you so much for the replies. I have a stupid question to ask though... do I remove all of the http info and just replace it with my main site's info?

for example, would I then replace
<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"> with <a href="http://www.pomzie.com"> and leave the rest of the string alone?

18 Oct 2007, 2:26 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change the logo link?

for example, would I then replace
<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"> with <a href="http://www.pomzie.com"> and leave the rest of the string alone?
You should not have to do this as . HTTP_SERVER . DIR_WS_CATALOG looks to the configure.php file and what is set there

Zen-Venom Get Bitten

19 Oct 2007, 5:07 AM
#9
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

Re: Change the logo link?

kobra:

You should not have to do this as . HTTP_SERVER . DIR_WS_CATALOG looks to the configure.php file and what is set there
So, there is no way to add a specific link (not necessarily index.php; but say, http://www.google.com) to the logo?

Thanks a lot for all the answers! :)

19 Oct 2007, 4:21 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change the logo link?

So, there is no way to add a specific link
Did not state that at all. You op querried that your install on a local was rendering the index.html
MemooMeM:

when I include an index.html in root, Zen Cart displays this index.html when clicked, but not the index.php. I would like it to display index.php instead.
You might be more specific in what you want as I thought you were but now seem to want something different

Zen-Venom Get Bitten

19 Oct 2007, 5:09 PM
#11
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: Change the logo link?

Delete the index.html file. It will default to that instead of the .php file if both are present, I believe. That's server, not ZC. (I had a problem with this on a Joomla site -- I realized I had an index.html page in the site too, and when I deleted that, the .php would show up.)

When it's installed "live" it will show the catalog main page at the index.php page.

If you WANT a "landing" page, then you'll probably have to put the ZC in a sub-folder, otherwise the .html page will come up.

Unless I'm totally missing what you're trying to do.

HTH,

Lesli in SW Florida ~ writer, teacher, and dodging hurricanes!

20 Oct 2007, 5:03 PM
#12
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

Re: Change the logo link?

I am sorry for the confusion and thanks for your efforts to understand my problem. Let me make it clear this time...

I have both index.html and index.php under root directory. My apache server gives the priority to index.html and displays it by default. This page is nothing but a simple welcome image with a link to index.php for access to Zen Cart's main page. I want both pages there.

However, when users click the logo, it opens the index.html again and they see the welcome message again, and the y have to click the image to see the Zen Cart pages, which might be annoying. So, I would like to hardlink the logo to index.php, so users have to see the welcome screen ONLY ONCE, and then stay in Zen Cart pages all the time. When click the logo, they should return to the main page of the Zen Cart, not to the welcome screen.

That's why I asked if it's possible to put a direct link to the logo, such as google. If this is possible, I will just put "http://www.mywebsite.com/index.php" there. I haven't launched the site yet, so I can't provide a link to the website, sorry :(( I must find a good hosting company first!

Thank you very much... Again!...

20 Oct 2007, 5:06 PM
#13
memoomem avatar

memoomem

New Zenner

Join Date:
Jul 2007
Posts:
49
Plugin Contributions:
0

Re: Change the logo link?

madmumbler:

If you WANT a "landing" page, then you'll probably have to put the ZC in a sub-folder, otherwise the .html page will come up.

Ah! "Landing" page is the word I was looking for, and the subdirectory sounds like a great idea!! I hope it doesn't mess up internal links... I will try!

Thanks a lot!! :clap:

20 Oct 2007, 5:52 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change the logo link?

My apache server gives the priority to index.html and displays it by default
Ah! "Landing" page is the word I was looking for, and the subdirectory sounds like a great idea!! I hope it doesn't mess up internal links... I will try!
If you have the ability to use htaccess or will later then this can be addressed there where you define the initial access to be ???.html and leave the cart files as is "NO HARD LINK" as it is already linked to what is defined in your configure.php file and it appears the the way you have Apache configed is the issue

Zen-Venom Get Bitten