I am new to drupal theming and trying to edit the menu for a sub theme with base theme as Zen. But when I tried to add class and div to the main menu, I saw its not changing. Later when I print_r($main_menu) in page.tpl.php in my subtheme directory, it is showing empty results ! But the same print_r($main_menu) shows the main menu array in Bartik theme's page.tpl.php ! How can I create the main_menu variable in my theme ?
main_menu variable is always empty in drupal theme Zen
274 Views Asked by Nitish At
1
There are 1 best solutions below
Related Questions in CSS
- CSS Class is not applying to element (border width,color,and style attributes)
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
- Positioning child at bottom of parent with scroll
- Play multiple audio files in a slider
- How to set text over image?
- Website zoomed out on Android default browser
- Writing/Overwriting to specific XML file from ASP.NET code behind
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- CSS: Preventing a property to affect on element until the end of transition
- Polygon Button with pure CSS
- transform-origin doesnt apply in safari
- show/hide multiple div tags at once and change the size of the remaining div tag
- Mask the image/maps/div (circle) using css and jquery
Related Questions in MENU
- moving a check box in html list and moving it
- Android toolbar context menu for listview items
- Joomla Get menu id from names
- How to add select menu in prestashop?
- Dynamic Menu in Qt Application
- Winforms remove controls on click
- CSS Menu system not working in IOS 8
- Polymer 1.0 How to vertical menu
- html css mega menu drop down
- How to add serial numbers to menu items in wordpress
- How to get HTML of a sidebar content in wordpress?
- Text on a menu becomes invisible
- Change Permalinks to Anchor Links When Using Bootstrap Navwalker
- Div ul list css menu
- Start onActivityResult not being called from menu option
Related Questions in DRUPAL-7
- Drupal access control to custom user profile page
- How to list all child pages of current parent page in drupal 7?
- Drupal location module shows only a portion of Gmap on node page
- How to add a select collection type select list to field collection
- Drupal AngularJS ajax simple ng-repeat update
- PHPStorm Drush on Vagrant
- Drupal: Access A Field in hook_views_query_alter()
- Drupal domain access auto create content
- How to display sibling pages except current page in drupal 7?
- how to merge entity reference relationship field value
- Drupal print breaks when rendering a region
- Drupal 7 treating HTML div with data attribute as text
- All files and folders are not being listed in the imce file browser in Drupal 7
- drupal api returns json causes syntax error, malformed JSON in json_decode function of php
- Drupal module development, custom database tables, pages for managing those data
Related Questions in DRUPAL-THEMING
- Drupal print breaks when rendering a region
- Override Taxonomy Pages without entire page override
- 'Smart' way to include the same HTML in multiple TPL files?
- ShareThis button directly in Drupal's tpl.php files
- Drupal theme Views template modifications
- the right way to show content in themes
- Drupal run update.php shown in Zip archive support missing
- Drupal Commerce Kickstart Product list theming
- How to wrap field in custom markup?
- Drupal 7 custom menu rendering
- Drupal 7 block.tpl.php does not exist
- Drupal 7 - Page template suggestion based on specific alias
- Displaying Drupal taxonomy term desciption in node
- Theme Views row with Panels in Drupal
- Drupal 7 CSS Issues
Related Questions in ZEN
- zen load balancer virtual IP is masking origin SMTP IP which is leading to false spam in Exchange
- CSS :hover on mobile not working for Drupal 7 / Zen site
- Visual Studio Code's Zen coding HTML comment
- zen mode visual studio code — highlight only current function and blur the rest
- Footer not 'always' sticking to the bottom
- Display dropdown menu in zen cart
- Lightbox Is starting on its own with no target image
- Is there a way to create dom with zen coding?
- Hide top bar in visual studio code (zen mode)
- Installing Zen Library
- Pervasive SQL 2000i Database Last Transaction Query
- Actian/Pervasive PSQL Zen 13.30 error 46 random ocurrences
- How Can I store attributes to add_cart Manually in Zen Cart?
- Possible to slow down time in the Java virtual machine?
- main_menu variable is always empty in drupal theme Zen
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I hope this would solve your problem
https://drupal.org/project/menu_attributes
Regards, Immanuel Paul