-
AuthorPosts
-
July 12, 2011 at 3:48 pm #166213
I would like the item “Home” from the main menu, was an image instead of text.
How can I do this?khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
July 12, 2011 at 6:14 pm #400824Hi,
You edit Home menu, set Additional class is home-iconJuly 28, 2011 at 10:40 pm #403504How can I do that?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
July 28, 2011 at 10:44 pm #403506Go 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.
July 28, 2011 at 11:18 pm #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
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
July 29, 2011 at 6:51 am #403551Ah, 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.
August 4, 2011 at 10:29 am #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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
August 4, 2011 at 11:03 am #404478I’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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
August 4, 2011 at 11:26 am #404482As 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.
1 user says Thank You to Phill for this useful post
AuthorPostsViewing 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
Menu imagem
Viewing 9 posts - 1 through 9 (of 9 total)