Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Responsive hamburger menu issue SORTED
Author « Topic »  

1818charlie
ECT Moderator

United Kingdom
1180 Posts

Posted - 06/09/2020 :  14:48:59  
The site that I'm currently upgrading to a new responsive template has a slight issue in that the hamburger menu only ever shows 2 bars. (There's no meat between the bun ). The menu works fine on all screen resolutions but it does look wrong. I've been unable to locate where the three bars are generated from but it's not an image file.

Anyone any ideas how to make it show all three bars? As a test I have setup a test site from the unzipped template and that's exactly the same so I'm sure it's not of my doing. The template is the php Natura.



Steve
Bolton Lancashire England



Edited by - 1818charlie on 06/10/2020 05:44:24

dbdave
ECT Moderator

USA
10277 Posts

Posted - 06/09/2020 :  16:12:52  
Hi Steve, have you looked through the css file(s) that come with the menu. Most of these come with an extensive css file, or multiple css files.
Being that the meatless hamburger only shows on the smaller views, make sure you are digging into the css files where the media queries are shown.
If it has javascript and not pure css, it could be coming from there.
Perhaps is just the = sign stuck in there with pseudo css...

If you want to message me a link to the site, I'll take a look.

Thanks,
David

1818charlie
ECT Moderator

United Kingdom
1180 Posts

Posted - 06/09/2020 :  17:56:26  
Hi Dave

At the moment the new site redesign is in a separate folder which is IP restricted for viewing.

I have found four files which I'm thinking are related to the workings of the menu that come with the template; megastyle.css, fixed.js, megamenu.js & accordion.js. I've had a look through them and nothing shouts out at me, but I'm no js guru. I've posted the contents of all three files in the following pdf file rather than post here and make a loooong post. I hope this throws some light on it all.

https://v45.co.uk/ect/hamburger-menu-issue.pdf

I will check back in the morning - UK time.

Thanks for taking the time to have a look.

Steve
Bolton Lancashire England



Edited by - 1818charlie on 06/09/2020 18:05:20

dbdave
ECT Moderator

USA
10277 Posts

Posted - 06/09/2020 :  18:26:26  
I spotted that in just a moment actually... It is indeed the "=" sign and that's a little unusual I think.

quote:
.menu-mobile:after {
content: "=";


You can easily change that to an image...


.menu-mobile:after {
content: url('images/hamburger-with-meat.jpg');

You might also use an HTML entity

https://dev.w3.org/html5/html-author/charref

.menu-mobile:after {
content: '\02261';



That should do it...
David


Edited by - dbdave on 06/09/2020 18:38:14

ITZAP
Ecommerce Template Guru

Australia
1010 Posts

Posted - 06/09/2020 :  20:35:15  
Or use a Font Awesome Icon.

Gary

1818charlie
ECT Moderator

United Kingdom
1180 Posts

Posted - 06/10/2020 :  05:47:23  
Gentlemen, thank you.

All's looking & functioning as expected & the chosen solution is the HTML entity.

Steve
Bolton Lancashire England


Vince
Administrator

42472 Posts

Posted - 06/11/2020 :  03:21:55  
Thanks for all the input here and I've added the changes to the template download.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000