test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • jhendric1000 Friend
    #148463

    I’ve seen this on a bunch of sites but I can’t figure out how to do it. I just added a new menu item on my website and I want a little “new” image/tag in the upper-right corner of the menu button. I still want to use the standard text for the menu title. Does anyone know how to do this?

    Anonymous Moderator
    #331992

    Hi you

    Open templates/ja_seleni/libs/menu/base.class.php fine following code section:

    if ($this->getParam('menu_images') && $iParams->get('menu_image') && $iParams->get('menu_image') != -1) {
    if ($this->getParam('menu_background')) {
    $itembg = 'style="background-image:url('.JURI::base().'/images/stories/'.$iParams->get('menu_image').');"';
    $txt = '<span class="menu-title">' . $tmp->name . '</span>';
    } else {
    $txt = '<span class="menu-image"><img src="'.JURI::base().'/images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /></span><span class="menu-title">' . $tmp->name . '</span>';
    }
    } else {
    $txt = '<span class="menu-title">' . $tmp->name . '</span>';
    }

    and change to:

    if ($this->getParam('menu_images') && $iParams->get('menu_image') && $iParams->get('menu_image') != -1) {
    $txt = '<span class="menu-title">' . $tmp->name . '</span> <span class="menu-image"><img src="'.JURI::base().'/images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /></span>';
    } else {
    $txt = '<span class="menu-title">' . $tmp->name . '</span>';
    }

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

This topic contains 2 replies, has 2 voices, and was last updated by Anonymous 14 years, 10 months ago.

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