Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • ricardperez Friend
    #132576

    I’d like to highlight one menu option into the mainmenu.

    I.e: in quickstart I’d like to remark ‘SPORT’ menu option in different color.

    I’ve got this:

    And I’d like to have ‘Sports’ in red color:

    I’ve been looking at ja_menusBase.class.php but I don’t know where to exactly hardcore the strcasecmp(‘Sport’) sentence

    Thanks in advance
    Ricard

    Sherlock Friend
    #267333

    Hi
    You must edit so much
    Example, you use Moomenu
    you must change
    1. Edit Base.class.php(templatesja_teline_iija_menus folder)
    Replace those lines :

    function genClass ($mitem, $level, $pos) {
    $active = in_array($mitem->id, $this->open);
    $cls = ($level?"":"menu-item{$mitem->_idx}"). ($active?" active":"").($pos?" $pos-item":"");
    return $cls?"class="$cls"":"";
    }

    By

    function genClass ($mitem, $level, $pos) {
    $active = in_array($mitem->id, $this->open);
    if (strtolower($mitem->name)!="sport"){

    $cls = ($level?"":"menu-item{$mitem->_idx}"). ($active?" active":"").($pos?" $pos-item":"");
    } else {
    $cls = ($level?"":"menu-item{$mitem->_idx}"). ($active?" active_sport":" sport").($pos?" $pos-item":"");
    }
    return $cls?"class="$cls"":"";
    }

    Sherlock Friend
    #267338

    2. You add Css to ja.moomenu.css(templatesja_teline_iija_menusja_moomenu folder)
    Like as:

    #ja-cssmenu li a.active_sport, #ja-cssmenu li a.active_sport:hover, #ja-cssmenu li a.active_sport:active, #ja-cssmenu li a.active_sport:focus {
    //add your code css here
    }

    ricardperez Friend
    #267343

    Thanks nguoiabcd,

    I’m using CSSMenu and the problem is that I’ve got subchilds in the menu option.

    Anyway I’ll continue trying.
    Ricard

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  ricardperez 16 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum