test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • joaoferraz Friend
    #166213

    I would like the item “Home” from the main menu, was an image instead of text.
    How can I do this?

    khoand Friend
    #400824

    Hi,
    You edit Home menu, set Additional class is home-icon

    joaoferraz Friend
    #403504

    How can I do that?

    Phill Moderator
    #403506

    Go into the menu manager for the home item and look in the Parameters (JA Extended) where you will find the option to add that class.

    joaoferraz Friend
    #403509

    <em>@phill luckhurst 256242 wrote:</em><blockquote>Go into the menu manager for the home item and look in the Parameters (JA Extended) where you will find the option to add that class.</blockquote>

    There is no Parameters (JA Extended) in Ja Opal


    1. home_icon
    Phill Moderator
    #403551

    Ah, I forgot that was the older template style. I will take a look ad how to achieve that. We wil need a little CSS adjustment. I’ll get back to you tomorrow.

    joaoferraz Friend
    #404472

    <em>@phill luckhurst 256305 wrote:</em><blockquote>Ah, I forgot that was the older template style. I will take a look ad how to achieve that. We wil need a little CSS adjustment. I’ll get back to you tomorrow.</blockquote>

    Some position regarding?

    Phill Moderator
    #404478

    I’ve taken a look and it seems the menu system does not support this. It will take quite a bit of work to achive.

    Phill Moderator
    #404482

    As I said, a little more complex than first thought but let’s try this.

    First open templates>ja_opal>ja_vars_1.5.php and add the lines highlighted in red below.


    //Main navigation
    $ja_menutype = $tmpTools->getParam(JA_TOOL_MENU);
    $jamenu = null;
    if ($ja_menutype != 'none') {
    include_once( dirname(__FILE__).DS.'ja_menus/Base.class.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);
    [FONT=Courier New]//enable to show menu icon
    $japarams->set('menu_images', 1);
    //Make the icon as background
    $japarams->set('menu_background', 1);

    [/FONT]

    Then you can add your image from the menu manager Paramaters (System) menu. You will need to make sure your image is in the folder the tooltip on that item tells you to.

    Once that is done you will need to do some styling via css but until we can see the results of the above I cannot advise on that. It all depends on the size and position of your image.

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

This topic contains 9 replies, has 3 voices, and was last updated by  Phill 13 years, 4 months ago.

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