V
V
Vlad1712015-09-09 23:27:06
Drupal
Vlad171, 2015-09-09 23:27:06

How to properly implement your menu in Drupal?

Immediately I ask you not to kick and not to be clever. Just started learning Drupal. I'm trying to create my own theme from scratch. There was a ready-made layout of the site, you need to pull it on cms. Selected the region under the menu, defined its output in the template. And here there are 2 options: either push it like a normal block with links already written, etc., or create it through the Menu, while all the markup gets lost. Drupal adds its own classes, but it is possible to add links and edit from the cms menu. Is it possible to somehow override the standard menu output, or do I just need to change the css to match the Drupala markup.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
andead, 2015-09-10
@Vlad171

Override theme_menu_tree and theme_menu_link

O
Oaks, 2015-09-10
@oaksaudio

Change css under Drupal menu. I used the Nice Menus module . there you can prescribe your style.css in the settings “Design - Theme Settings”. In the theme settings, look for the field "Path to custom CSS file for Nice menus" and write the path to your own CSS file there.
Accordingly, it will need to be rewritten in css class or if there is an id for "Nice Menus".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question