Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    image problem Flag and Language drop down menu in header

    Just got my site up and need to fix something. My url is www.m o t herlandremedies.com. In the header there is an ovious missing link. When you curser over it it says 'American'. I need to find where this is coded and comment the whole thing out. It makes the site look half finished! When viewed the source code is

    "<div class="col2">

    <div class="indent">
    <div class="col1"><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="5" /><br />
    <strong>:</strong></div>
    <div class="col2"><div class="indent">

    <a href="http://www.motherlandremedies.com/index.php?main_page=index&amp;language=en"><img src="includes/languages/english/images/" alt="American" title=" American " style="vertical-align:middle;" /></a> </div>

    </div>

    How can I identfiy which file to look at?
    I did try in the admin panel "Tools" and searched with several words with no positive results.

    Please help!

    Linda Prowse

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Flag and Language drop down menu in header

    Give it a try by turning off the languages in the Tools >> Layout Boxes Controller.

  3. #3
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Flag and Language drop down menu in header

    Already tried that. It is off.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Flag and Language drop down menu in header

    Sure sign of a Template Monster Template.
    They can make things real "purdy" but have no clue as to what is controlled by the admin menus or coded into the database.
    SO... They devise their own plan for "purdy" and to with functionality down the road.
    Then, after creating the bogus col1, col2, and col3, they mix them all through out the TM stylesheet trying to place them where they want them.
    Unfortunately, you are going to need to exorcise a lot from the stylesheet_tm.css.
    Start by adding this to the end of the stylesheet_tm.css and see if it will respond to that.
    .col1 .col2 {display: none;}
    If that does the trick, you're done till the next "fix" rears its ugly head. Otherwise we'll need to "massage" more.

  5. #5
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Flag and Language drop down menu in header

    You really need to complain to your template provider that they have disabled/broken the stock functionality of Zen Cart.
    Last edited by Kim; 15 Aug 2011 at 03:24 AM.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  6. #6
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Flag and Language drop down menu in header

    Add that line of code did not work. Unfortunately. I went into tps_header.php and commented out the following:
    <!-- <?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> -->

    It should not be necessary!! There has to be a better way - but this is all I could find. I am just sure I am going to break my zen-cart trying to fix this stupid template.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Flag and Language drop down menu in header

    yep, wrong file. You did put that call at the end of stylesheeet_tm.css, right?
    You need to use the Developers Tool Kit to find where col1 and col2 are being created.

  8. #8
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Flag and Language drop down menu in header

    Go to your stylesheet_tm.css file.

    find the line below and put display: none; like I have below (copy and paste in the whole line)...


    .header_t .row3 .col2 .col1{width:71px; float:left; display: none;}

  9. #9
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    Have a Drink Re: Flag and Language drop down menu in header

    Thank you so much! I added that line under the code in stylesheet_tm.css and it worked!! Yayyy

  10. #10
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Flag and Language drop down menu in header

    I was wrong - it is still there! Could not see it in Mozilla - but could in IE - so I rebooted. Now I see it in both! Any more advice? I did try the seach in the tools in admin - I don't seem to be using it right because i get nothing.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Categories in the Header and a drop down menu
    By ray-the-otter in forum General Questions
    Replies: 4
    Last Post: 19 Nov 2012, 04:06 PM
  2. Remove Languages text , Flag & currency Drop Down Menu
    By flex67 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Nov 2010, 09:35 PM
  3. Drop down country menu in German Language Pack
    By jami1955 in forum Addon Language Packs
    Replies: 0
    Last Post: 26 Jul 2010, 06:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR