-
AuthorPosts
-
April 1, 2011 at 12:58 pm #162243
Hi everyone,
1) How can I disappear a first level menu item that is assigned as ‘public’ from my JA Portfolio main menu bar after user’s loggin? Basically I would like, this menu always be displayed throughout user’s navigation as public user and when user (only for registered members) logs in, then become hidden. When such instance occurs, its place will be taken over by another menu item which is assigned as ‘registered’ and would automatically become active.
2) How can I just show ‘home’ icon without showing text title at my main mega menu bar of JA Portfolio for Joomla 1.5 and 1.6? In Joomla 1.5 when ‘Show Title’ at JA Extended parameters is being set to ‘No’ then nothing is being displayed at all and the whole home menu item gets disappeared. I also tried the ‘Add Menu Title’ after the icon at Link Type Options parameters to ‘No’ when working in Joomla 1.6 but did not worked either.
Thanks in advance
Regards,
George
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 4, 2011 at 3:00 am #384689<em>@bollog 231706 wrote:</em><blockquote>Hi everyone,
1) How can I disappear a first level menu item that is assigned as ‘public’ from my JA Portfolio main menu bar after user’s loggin? Basically I would like, this menu always be displayed throughout user’s navigation as public user and when user (only for registered members) logs in, then become hidden. When such instance occurs, its place will be taken over by another menu item which is assigned as ‘registered’ and would automatically become active.
2) How can I just show ‘home’ icon without showing text title at my main mega menu bar of JA Portfolio for Joomla 1.5 and 1.6? In Joomla 1.5 when ‘Show Title’ at JA Extended parameters is being set to ‘No’ then nothing is being displayed at all and the whole home menu item gets disappeared. I also tried the ‘Add Menu Title’ after the icon at Link Type Options parameters to ‘No’ when working in Joomla 1.6 but did not worked either.
Thanks in advance
Regards,
George</blockquote>
Hi bollog,For the first issue you can try as following steps
1) Go to the menu manager >> the menu item setting >> Parameters (JA Extended) panel ,here you add a Additional class for which you want it to be hide after user login,for example you add a class name hidden
Copy the file of pluginssystemjat3base-themesdefaultblockscss.php and put it into the folder of templatesja_portfolioblocks
Open the copied file and add below codes right over the </style> tag
[PHP] <?php
$user = & JFactory::getUser();if(!$user->get(‘guest’)): ?>
.ja-megamenu li.hidden{
display:none !important;
}
<?php endif ?>[/PHP]After do that change,the menu items with the Additional class name “hidden” will be hide once user login.
For the second issue I think you just need to add a Additional class for the menu item which you want it display icon without text title.for example you add a Additional class name hidetext then you can add below css to hide texts for this class
.ja-megamenu li.hidden span.menu-title, .ja-megamenu li.hidden span.menu-desc{
visibility:hidden;
}I hope these would help !
-
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by Sherlock 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum