Forums / Templates, Stylesheets, Page Layout / Need to remove British flag icon

Need to remove British flag icon

Locked

Views: 5,190

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
24 Mar 2009, 8:56 PM
#1
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Need to remove British flag icon

Hello. I have searched and searched, but haven't found any straightforward info about how to remove the British flag icon from its many locations on the ZC installation.

My site is for a US client who also has offices elsewhere in the world (represented by other websites...), so there must be no confusion about the nationality of the site I'm doing; most of the products are made in other countries (lots of them), so no flag icons would be appropriate at any rate.

Is there an easy way to remove the flag icon?

24 Mar 2009, 9:14 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Need to remove British flag icon

Is the site multilingual? Are you using a standard Zen Cart template or one that you have brought from a third party?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Mar 2009, 1:37 PM
#3
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Need to remove British flag icon

The site is only US - English, as there are other company sites in other languages that are administered elsewhere.

I am using the standard template, (the greenish one) modifying the CSS and layout.

25 Mar 2009, 2:53 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Need to remove British flag icon

In that case, you need only turn off the languages sidebox in Admin > Tools > Layout Boxes Controller. No point wasting screen space offering a choice when there's only one option available.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Mar 2009, 3:16 PM
#5
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Need to remove British flag icon

Thank you! I am very new to ZC, and am still having a pretty hard time figuring out where the various admin controls are located.

1 Apr 2009, 3:56 AM
#6
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: Need to remove British flag icon

I have another question. I turned off the languages sidebox, and removed the flag successfully(open by firefox browser).
But, when I open my website by IE browser,it appears error flag image.How can I remove the image entirely?
I believe there'll be many customers using IE browser.
Thank you.

my site is : http://www.maiall.com

1 Apr 2009, 9:20 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Need to remove British flag icon

That's not a standard place for it, but you should find it in your template's common/tpl_header.php template file buried inside the taglineWrapper DIV. You would need to delete the A tag that contains the image.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Apr 2009, 11:52 AM
#8
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: Need to remove British flag icon

Get it. thank you.:smile:

16 Aug 2010, 5:54 PM
#9
captainpicard avatar

captainpicard

New Zenner

Join Date:
Aug 2010
Posts:
8
Plugin Contributions:
0

Re: Need to remove British flag icon

kuroi:

In that case, you need only turn off the languages sidebox in Admin > Tools > Layout Boxes Controller. No point wasting screen space offering a choice when there's only one option available.

my sidebox is turned off but the link and image are still there...it just doesn't say "languages" anymore. I also looked through my tpl_header.php file and there is no instance of "tagline" or "taglineWrapper"

What to do now?

:(

16 Aug 2010, 6:04 PM
#10
captainpicard avatar

captainpicard

New Zenner

Join Date:
Aug 2010
Posts:
8
Plugin Contributions:
0

Re: Need to remove British flag icon

I figured it out. Also figured out how to delete the currency picker.

I had to delete this from tpl_header.php

                <?php #LANGUAGE START ?>
            
                <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) {
                    $lng = new language;
                  }
                
                  reset($lng->catalog_languages);
                
                  while (list($key, $value) = each($lng->catalog_languages)) {
                    echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', ' style="vertical-align:middle;"') . '</a>';
                  }
                 ?>
                 
                <?php #LANGUAGE END ?>

            </div>
            <div class="nav_2">
            
                <?php #CURRENCIES START ?>
            
                <?=zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>

                <?
                
                    if (isset($currencies) && is_object($currencies)) {
                
                      reset($currencies->currencies);
                      $currencies_array = array();
                      while (list($key, $value) = each($currencies->currencies)) {
                        $currencies_array[] = array('id' => $key, 'text' => $value['title']);
                      }
                
                      $hidden_get_variables = '';
                      reset($_GET);
                      while (list($key, $value) = each($_GET)) {
                        if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
                          $hidden_get_variables .= zen_draw_hidden_field($key, $value);
                        }
                      }
                    }
                
                ?><?=zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], ' onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?></form>

                <?php #CURRENCIES END ?>
16 Aug 2010, 6:07 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Need to remove British flag icon

None of that code exists in the default tpl_header.php template that comes with Zen Cart ... so whatever you're removing is custom code from an addon you've used.
And, by the way, that code you quoted is NOT compatible with PHP 5.3 and newer.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.