Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

I want to change the mobile menu icon for the Responsive template

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Currently the icon for the mobile menu button is three black dots and three small lines. I want to change this to a small button that says "menu".

Could you please tell me where the icon is/ icon name so that I can change it?

Could you please tell me how to modify the code to widen the icon area?

Thanks - Ottoman
  • ottoman's Avatar
  • ottoman
  • 6 Month Developer
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Ottoman,

What you are asking will require changing a core PHP template file... slightly! Here is my road-map;

Edit this file
templates/responsive/tpls/blocks/nav.php
Look for this
<span class="icon-list-ul"></span>
Change to this
<span class="icon-chevron-left"> Menu</span>

Remember, you are adjusting a core template file that may get over-written with any theme updates to do. So... keep documentations on your adjustment!!!

This menu icon button is being generated using Font-Awesome (fontawesome.io/icons/) and being quarterback by the JBType plugin. Using this code adjustment it will produce something like the image attached.

menu.png


I'm using the Nebula theme as an example but the Responsive theme uses the same format.

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
Another option folks have used is to add "Menu" to the existing icon using a media query

@media (min-width: 320px) and (max-width: 1010px) {

.icon-list-ul:after {content:"Menu"; padding-left:.5em}

}

This again is using nebula so the values used may need to be adjusted

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Please follow Paul's approach. It's much cleaner that does not require mucking around with the template's core files. Thanks Paul... just added this to the Nebula theme I'm working on!!! :P

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
No problem Ed

You're welcome :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks so much everyone for your help. I have not done a media query before as you outlined below.

If it's not too much trouble can you please tell me how?

Thanks - Ottoman
-=-

"Another option folks have used is to add "Menu" to the existing icon using a media query

@media (min-width: 320px) and (max-width: 1010px) {

.icon-list-ul:after {content:"Menu"; padding-left:.5em}

}"
  • ottoman's Avatar
  • ottoman
  • 6 Month Developer
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Ottoman,

Just copy the CSS Paul gave you and place it at the bottom of your custom.css file. His media query effects all screen sizes between 320px & 1010px. You can adjust these screen sizes to you specific needs.

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
It worked beautifully.

go to www.SuperEmotions.com and make narrow your browser width until it pops up.

Thanks guys.

Happy New Year.

I am so impressed with joomlabamboo. If you need a testimonial I will be happy to provide one. I used a different service for the last couple of years and there's no comparison.
  • ottoman's Avatar
  • ottoman
  • 6 Month Developer
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Yep can see it in action

We'd love to have a testimonial :)

Thanks
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Being slightly cheeky here but it would be great if you could create a new thread and add it there :)

Thanks again

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
This just what I was looking for. Thanks.
However I still can't understand why the 3dot icon doesn't show at all.
Nor does the return to top arrow?

Sean

www.edgeneve.ch/bjg

the sister site shows it perfectly
www.edgeneve.ch
  • Sean's Avatar
  • Sean
  • 12 Month basic
  • 207 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
Is JB Type installed and enabled?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
oops quite right JBtype was installed but not enabled.

thanks Paul

Sean
  • Sean's Avatar
  • Sean
  • 12 Month basic
  • 207 posts
  • 1 Thanks
  • Karma: 0
The administrator has disabled public write access.
No worries

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers