Additional icons in mobile menu

Additional icons in mobile menu was created by trevorsm

Posted 7 years 1 month ago #40483
Hi

I have been asked to add some icons to the mobile menu something like this:



I tried adding them in a div inside the mobilebarmaximenuck div but when clicked they just expand the menu.
Is there a way of achieving this?

Thanks
Trevor
Attachments:

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Additional icons in mobile menu

Posted 7 years 1 month ago #40488
Hi
Actually I have no solution to do that and I have not tried yet

I tried adding them in a div inside the mobilebarmaximenuck

with javascript ?

CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by trevorsm on topic Additional icons in mobile menu

Posted 7 years 1 month ago #40831
Hi CEd

If I created my own mobile button how can I use it to call out the mobile menu?

Best regards
Trevor

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Additional icons in mobile menu

Posted 7 years 1 month ago #40833
Hi
in the maximenu mobile plugin options you can set the design of the menu, and set the images for it
you can also use your own css rules if you prefer
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by trevorsm on topic Additional icons in mobile menu

Posted 7 years 1 month ago #40839
Hi CEd

I managed to get it working by creating a link:
<a href="#" onclick="openMenu();"> <span class="fa fa-bars"></span> </a>

And adding a script:
<script>
function openMenu() {
document.getElementById("maximenushopwide-mobilebarmaximenuck").click();
}
</script>

And some css to move things into position.

Not very elegant but it seems to work.

Best regards
Trevor
The following user(s) said Thank You: ced1870

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Additional icons in mobile menu

Posted 7 years 1 month ago #40845
Hi
this is a solution, a bit specific but it works and I don't see any problem with that
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.669 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 315 guests and one member online