Zen Cart Logo

logo display

Locked

Views: 1,584

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
27 May 2010, 5:08 PM
#1
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

logo display

i thought this was easy peasy but.... it isn't working.

My set is multilingual and i want to show a different logo.gif for each language.

I thought this would be done by naming the logo.gif differently in the language/header.php file.

So i changed the logo.gif into logode.gif logonl.gif etc and uploaded the pictures and teh adjusted header.php files.

BUT.... nothing happened it is still showing the original logo.gif file,

Ho wcan i make this work?

Thanks

27 May 2010, 5:14 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: logo display

Read this file first:

includes/ templates/ template_default/ css/ CSS_read_me.txt

This is a core file, so if you are using the override system place in your_template/ css

27 May 2010, 5:32 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: logo display

FenG:

i thought this was easy peasy but.... it isn't working.

My set is multilingual and i want to show a different logo.gif for each language.

I thought this would be done by naming the logo.gif differently in the language/header.php file.

So i changed the logo.gif into logode.gif logonl.gif etc and uploaded the pictures and teh adjusted header.php files.

BUT.... nothing happened it is still showing the original logo.gif file,

Ho wcan i make this work?

Thanks

Fundamentally, the approach you have taken sounds logical.

Are you sure that your site actually displays logo.gif ... and not just header_bg.gif? (Some people configure the background image to be the site "logo".)

Haredo's suggestion that you could control this via language-specific stylesheets alse seems plausible...

27 May 2010, 5:39 PM
#4
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: logo display

read that too, and still can not figure out how to get it to work.

I have a german_stylesheet.css and for all the other languages as well.

and inlcuded this:
#headerpic img{
image: url("../images/logode.gif");
display: block;
}

but this is not working

I think i actually use the logo.gif. Cause when i deleted mine the classic logo.gif was shown and that is the small zen-cart logo pic.

27 May 2010, 6:05 PM
#5
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: logo display

ok, just discovered something.

When i change my tenplate to the classic template, the logo is actually doing what i want it to do.
It changes to the logo that goes with the language you choose.

But in my custom template it is not working.

why o why??:wacko:

27 May 2010, 7:13 PM
#6
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: logo display

ok, i have now seen that when i choose the classic template. The images are pulled from the classic/images file.

However when i choose my custom template, the images are pulled from the template_default/images file.

i am oing crazy, not sure why this happens.

Cause i have the images in the custom/images file

27 May 2010, 7:53 PM
#7
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: logo display

ok in my custom template i found the following

template/custom/common/tpl_header.php

I found the following line:

<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.gif'); ?></a>

When i deleted this, it also deleted my logo image. So this def. has something to do with it. It is for sure the reason why it keeps showing the logo.gif But how would i work my way around this.?

27 May 2010, 8:26 PM
#8
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: logo display

SOLVED :clap:

I change the lien above with:

<?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>'; ?>

( as written in the default template )

27 May 2010, 9:08 PM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: logo display

I'll bet a $10 donation to the Dev team that the template was either from TemplateMonster or Algozone !

28 May 2010, 5:55 AM
#10
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: logo display

you just donated $10,- cause it is zenflavour template :)

28 May 2010, 6:12 AM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: logo display

:smile: Donation will duly be made !

28 May 2010, 6:19 AM
#12
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: logo display

Here it is...

http://www.modshops.co.uk/zenpay.jpg
28 May 2010, 6:31 AM
#13
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: logo display

FenG:

SOLVED :clap:

I change the lien above with:

<?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>'; ?>

( as written in the default template )

Without hacking into core files your problem is best solved by:

  1. creating a new image file for each language ie logode.gif (for german), logoesp.gif (for spanish), logofr.gif (for french) etc

  2. place all of these images into your image folder includes/templates/your_template/images

  3. open header.php in includes/languages/german/your_template and find define('HEADER_LOGO_IMAGE', 'logo.gif'); then change logo.gif to logode.gif

  4. open header.php in includes/languages/spanish/your_template and find define('HEADER_LOGO_IMAGE', 'logo.gif'); then change logo.gif to logoesp.gif

  5. open header.php in includes/languages/french/your_template and find define('HEADER_LOGO_IMAGE', 'logo.gif'); then change logo.gif to logofr.gif

  6. next language ......

I would suggest to reverse your core file edit and use the above approach.

28 May 2010, 6:37 AM
#14
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: logo display

schoolboy:

Here it is...

I love it when people stick to their words :yes::yes:

28 May 2010, 6:50 AM
#15
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: logo display

Frank, thats how i originally did it.
But because of the code in the tpl_header it would automaticly use the logo.gif that was the issue.

By changing that code somewhat back to the original code got it to work for me.

YEAH:clap: i think the donation is highly apreciated.

28 May 2010, 7:14 AM
#16
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: logo display

FenG:

....By changing that code somewhat back to the original code got it to work for me....

Yep, that's the way. At least someone else may benefit from our exchange in this thread when they attempt to do something similar :D