Wednesday 21 May 2014

How to make changes in Drupals TB Mega Menu Module

Rather than hacking over CSS here's how to make changes in Drupals TB Mega Menu Module.

the files can be found at sites/all/modules/contrib/tb_megamenu/css/styles/black.css

make a new file here like grey.ss

then in   /sites/all/modules/contrib/tb_megamenu/tb_megamenu.functions.inc 


Add 

'grey' => t('Grey'), 

under 

'green' => t('Green'), 


And 

    drupal_get_path('module', 'tb_megamenu') . '/css/styles/grey.css',

under



drupal_get_path('module', 'tb_megamenu') . '/css/styles/green.css', 


in admin visit  structure -> tb mega menu  ->  ( your menu ) -> configure. 

you can now choose Grey  

No comments: