Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

[Suggestion] Disabling separator item in mobile menu

05-26-2015, 05:06 PM
# 1 (permalink)
brand_new
Hi.

Separator type menu items on the mobile menu are now active and have the same color as the positions with link.
That's not good.

A simple change in the code will do the trick.
File(s) yjsg_mobilemenu.php

After the line 77 must add code:
if ($ menuitem-> type == 'separator') {
$ disabled = 'disabled';
} else {
$ disabled = '';
}

And a line that generates <option> value change to:
<option <? php echo $ anchor_css?> value = "<? php echo JRoute :: _ ($ menuitem->, fast-acting)?>" <? php echo $ selected?> <? php echo $ disabled? >> <? php echo $ addline. $ menuitem-> title?> </ option>

Such a position can now be separately styled:
#mmenu option: disabled {
color: #bbbbbb;
text-transform: uppercase;
}

Best regards,
Brand New

p.s. If this is not a problem, please join such changes to the next edition of the plugin.

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: N/A

PHP version: N/A

Link to installation: n/a

Have you edited any files? If yes tell us which ones.: Yes

Is this personal or client website?: Personal
05-27-2015, 06:25 AM
# 3 (permalink)
neo
and class would be more suitable option than disabled I think but , submit there and we will test before the update
05-27-2015, 06:41 AM
# 4 (permalink)
brand_new
Hi neo.

Please take into consideration that menu item (<option>) without a disabled option is still possible to select in the mobile device and redirect to the main page of the site.
Styling of this item (by class assignment) is important but secondary thing.

Best regards,
Brand New
Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

Members Login

Username
Password