Menu displayed when page loads

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jul 06, 2013 7:26 pm
Reply with quote
Report this post
Hi

I'm using gavick params menu to display many categories and subcategories and i have a little problem i would like fix it.

When page loads menu is shown, usually is for a bit time but with slow connections it's displayed for one second around and it's not nice visually. How i can hide this when page loads?

Regards.

P.S. My website is www.juguetitossex.es
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 9:29 am
Reply with quote
Report this post
Please try this code:
Code: Select all
.gkMenu > ul > li > .childcontent, .gkMenu > ul > li > .childcontent .childcontent {
height: 0px;
width: 0px;
opacity: 0;
left: auto;
overflow: hidden;
}


It should help, but if not, please write back.

Please read first about adding custom CSS:
http://www.gavick.com/documentation/joo ... -template/
User avatar
Moderator

GK User
Mon Jul 08, 2013 12:38 pm
Reply with quote
Report this post
Hi Cyberek.

Thank you for your answer but not works fine.

When i use that code when page loads subcategories are not shown but neither displayed subcategories when i "rollover" categories. Maybe there should be some way to do this with javascript and only affecting when page is loading.

I tried different CSS codes but it's difficult to do this when page loads.

Regards.
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 1:44 pm
Reply with quote
Report this post
Are your site live, or can You post those mentioned changes and give me a replay to check what else can be done?
Or perhaps You could create copy of a site to test few solutions?
The problem is with menu itself and JavaScript which makes it works. The menu is open at start, and when page loads, JS hides what doesnt have to be shown. So the only solution is to hide elements in css the same way JS is doing it later - and this should work with solution given above, but as long as I can't see it live, I Cant tell why it is not working :(.

The other solution would be to give the submenus display:none; and with JS onload show them again, and then fire all showing/hiding mechanisms.
User avatar
Moderator

GK User
Mon Jul 08, 2013 3:47 pm
Reply with quote
Report this post
Hi

The problem when i add that CSS code is "sub-items" of main menu are never displayed. The menu is not open at start but neither when i put mouse pointer over menu.

You can see that: www.juguetitossex.es. If you prefer i can give you FTP access to check it.

Regards.
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 8:12 pm
Reply with quote
Report this post
Please send me a PM with:
1. URL to your website
2. ftp data (host, user, password)
3. link to this thread
User avatar
Moderator

GK User
Wed Jul 10, 2013 1:33 pm
Reply with quote
Report this post
Hi Cyberek.

I sent you a PM on Monday. Have you seen it?
User avatar
Senior Boarder

GK User
Thu Jul 11, 2013 1:06 pm
Reply with quote
Report this post
Is the override.css enabled on your site?
If not, please enable it (and remove the code that makes submenu items not show).
User avatar
Moderator

GK User
Fri Jul 12, 2013 10:22 am
Reply with quote
Report this post
Hi

override.css is enabled now.

I dissabled Joomla Cache, you can see changes now.

Thank you
User avatar
Senior Boarder

GK User
Fri Jul 12, 2013 12:00 pm
Reply with quote
Report this post
Ok, it was fast one:
Code: Select all
.gkMenu > ul > li > .childcontent, .gkMenu > ul > li > .childcontent .childcontent {opacity: 0;}


This code do exactly what You want, and is added to your override.css now.
User avatar
Moderator

GK User
Fri Jul 12, 2013 5:23 pm
Reply with quote
Report this post
It's perfect :)

Thank you Cyberek!
User avatar
Senior Boarder


cron