Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • cirix Friend
    #161176

    How Can I have a icon on menu?
    because in Parameters (Basic) on Menu Image does not work!

    many thanks

    bye

    khoand Friend
    #380433

    Hi,
    My solution is:
    – Open <joomla url>templatesja_sulfurja_menusBase.class.php file
    – Replace

    if ($this->getParam('menu_images') && $iParams->get('menu_image') && $iParams->get('menu_image') != -1) {
    to


    $menu_image = $iParams->_registry['_default']["data"]->menu_image;
    if ($menu_image != "-1") {

    – Replace

    $txt = '<img src="images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /><span class="menu-title">' . $tmp->name . '</span>';

    to

    $txt = '<img src="images/stories/'.$menu_image.'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /><span class="menu-title">' . $tmp->name . '</span>';

    cirix Friend
    #380751

    Many Thanks to khoand

    But now I have This problem see on image

    khoand Friend
    #380772

    Hi,
    My site on localhost works ok. I need to view your site. Can you provide your site url?

    Khanh Le Moderator
    #389916

    You don’t need change in that file. To get the image shown, you can update the parameters for jamenu in file templates/ja_sulfur/ja_vars_1.5.php, in //Main navigation block

    [PHP]
    $japarams = JA_Base::createParameterObject(”);
    $japarams->set( ‘menutype’, $tmpTools->getParam(‘menutype’, ‘mainmenu’) );
    $japarams->set( ‘menu_images_align’, ‘left’ );
    $japarams->set( ‘menupath’, $tmpTools->templateurl() .’/ja_menus’);
    $japarams->set(‘menu_title’, 0);
    //enable to show menu icon
    $japarams->set(‘menu_images’, 1);
    //Make the icon as background
    $japarams->set(‘menu_background’, 1);
    [/PHP]

    Some style should be updated to make the icon wel-displayed

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

This topic contains 5 replies, has 3 voices, and was last updated by  Khanh Le 13 years, 6 months ago.

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