Sub menu : wider

Business template for Joomla 3 and 2.5 ideal to create blog or personal website.
GK User
Mon Feb 06, 2012 12:04 pm
how to custom a sub menu (more wide), so I can accommodate seven words in a single row.
Thank you All. ;)
User avatar
Fresh Boarder

Konrad M
Mon Feb 06, 2012 2:41 pm
Hi
Can you give us ur lto your site?
User avatar

GK User
Tue Feb 07, 2012 12:18 am
Sorry, I still redesign it on the localhost
User avatar
Fresh Boarder

Konrad M
Tue Feb 07, 2012 9:49 am
Ok Try edit templates\gk_the_real_design\lib\menu\GKMenu.php and find this
Code: Select all
  if (isset($this->items[$pid]) && $level && !$this->items[$pid]->gkparams->get('group')) {
            $colw = 200;               
            $style = $colw?" style=\"width: {$colw}px;\"":"";
                $data .= "<div class=\"gkcol ".($pos?" $pos":"")."\"$style>";
            }

and change
Code: Select all
$colw = 200;

to size you want and then find
Code: Select all
for ($col = 0; $col < $cols; $col++) $width += 200;

and change 200 value to your.
User avatar

GK User
Tue Feb 07, 2012 2:33 pm
This is very helpful. Problem is resolved.
Thank you so much. :D
User avatar
Fresh Boarder

Konrad M
Tue Feb 07, 2012 3:32 pm
I'm glad I could help :)
User avatar


cron