Results 1 to 10 of 19

Hybrid View

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

    Default Re: change the color of active links category

    E ' tarda notte per voi . Possiamo continuare domani, se vi piace .
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #2
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: change the color of active links category

    Thank you that we can

    ps
    after 20H00 Paris now if that's all right
    Giovanni,
    Zen Cart V2.1

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

    Default Re: change the color of active links category

    Ora capisco che cosa si vuole , credo . Si dovrà creare il codice contro un foglio di stile per evidenziare quale categoria viene utilizzato dal cliente. Il foglio di stile non sa che "li" si sta guardando . Si sa solo di cambiare il suo colore se attivo . C'è un collegamento per un possibile risposta a .... https://www.google.com/url?sa=t&rct=...pkEDTSOcju0mCQ
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

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

    Default Re: change the color of active links category

    Buona Notte
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: change the color of active links category

    Buona sera

    Here I am, you and the left sidebar categories I want the active link.
    Giovanni,
    Zen Cart V2.1

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

    Default Re: change the color of active links category

    I have not been able to find anything that will highlight the category box in the left-hand column while the category is displayed. Marking the "li" as active only lasts until the category page is displayed.

    Hopefully, someone with a little more knowledge can help us out.

    I think you would need some code that recognizes which category is being accessed and change the background color for that category's link in the menu.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  7. #7
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: change the color of active links category

    Ok thank you, we hope that someone will help me.
    Giovanni,
    Zen Cart V2.1

  8. #8
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: change the color of active links category

    I understand which file to change, but I did not understand how to do hihih
    includes/templates/MY_templates/sidebox/tpl_categories.php

    This is my file tpl_categories.php

    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: tpl_categories_css.php 2004/06/23 00:00:00 DrByteZen Exp $
    //
      
    $content "";

        
    $content .= '<div id="vert_nav-cat">';
        
    $content .= $menulist// see the modules/sideboxes/YOURTEMPLATE/categories_css.php for this

      
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true'){
        
    $content .= '';  // insert a blank line/box in the menu
        
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
          
    $content .= '<ul class="vert_level1"><li><a href="' zen_href_link(FILENAME_SPECIALS) . '">' CATEGORIES_BOX_HEADING_SPECIALS '</a></li></ul>';
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
          
    $content .= '<ul class="vert_level1"><li><a href="' zen_href_link(FILENAME_PRODUCTS_NEW) . '">' CATEGORIES_BOX_HEADING_WHATS_NEW '</a></li></ul>';
        }
        if (
    SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
          
    $show_this $db->Execute("select products_id from " TABLE_FEATURED " where status= 1 limit 1");
          if (
    $show_this->RecordCount() > 0) {
            
    $content .= '<ul class="vert_level1"><li><a href="' zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS '</a></li></ul>';
          }
        }
        if (
    SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
          
    $content .= '<ul class="vert_level1"><li><a href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a></li></ul>';
        }
      }
      
    $content .= '</div>';
    // May want to add ............onfocus="this.blur()"...... to each A HREF to get rid of the dotted-box around links when they're clicked.
    // just parse the $content string and insert it into each A HREF tag

    ?>
    Giovanni,
    Zen Cart V2.1

 

 

Similar Threads

  1. How can I change the font color of the links in the lower part fo the header
    By Marlake in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2011, 06:00 PM
  2. Change font color of header category links
    By peanut in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Dec 2009, 03:00 PM
  3. How to add background color to some links in the category?
    By kobe in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jul 2009, 09:55 AM
  4. trying to change color of cateory links on the right
    By ebaobao in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Aug 2008, 02:53 AM
  5. Still trying to change the color of nav links!
    By ssbeats in forum General Questions
    Replies: 8
    Last Post: 15 Jan 2008, 10:33 PM

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