How to change width of gk menu

GK User
Tue Aug 07, 2012 7:24 pm
I am trying to figure out how to change the width of the gk menu drop down items. What do I need to do to change that?
User avatar
Fresh Boarder

GK User
Tue Aug 07, 2012 8:20 pm
I found it. Who ever else needs this just go into GKMenu.php which is located in lib/menu

Code: Select all
for ($col = 0; $col < $cols; $col++) $width += 200;


just change 200 to whatever width you need for the sub menu items.
User avatar
Fresh Boarder

GK User
Sun Sep 02, 2012 10:11 am
I'll make this topic sticky. BTW in the our new templates (starting with Fashion) you can change this param in the template settings.
User avatar
Administrator

GK User
Tue Sep 04, 2012 12:22 am
Can I do this by menu item also? I would like to have a few pages stretch across the entire length of the site. Example: http://www.studiougaylord.com/class-schedule
It would be nice it that was full size. Thanks in advance.
User avatar
Fresh Boarder

GK User
Tue Sep 04, 2012 6:49 am
I think that the only way is a creating the additional template style with proper settings assigned to specific menu items.
User avatar
Administrator

GK User
Sat Apr 27, 2013 2:16 am
wbauer74 wrote:I found it. Who ever else needs this just go into GKMenu.php which is located in lib/menu

Code: Select all
for ($col = 0; $col < $cols; $col++) $width += 200;


just change 200 to whatever width you need for the sub menu items.


What if I want to change the width of only one submenu without affecting others?
User avatar
Gold Boarder

GK User
Tue Apr 30, 2013 4:12 pm
@romgavick - do you mean some specific submenu or some specific level of the submenus?
User avatar
Administrator


cron