By ann.onimus07 on
Hello, everyone!
I am new to Drupal.
I have created a new theme, called Tutorial Theme, and I am trying to make a dropdown menu in the HEADER region. But the new Menu does not appear on the website. Also, how can I insert HTML code into regions using the DRUPAL GUI?
Can somebody help me?
Comments
my page.tpl.php and .info files
This is the page.tpl.php:
This is the .info file:
add
features[] = main_menu
; and if you want a secondary menu, add
features[] = secondary_menu
As for adding html to regions through the UI, create a custom block that can be assigned to your region, and be sure to set the input filter appropriately.
thank you and a few more questions
Thank you for your fast reply.
1)How to create a custom block through the UI? Or do you mean another HTML division in the page.tpl.php?
2)What do you mean by input filter?
Answers
On the blocks page, of course.
All Drupal output is filtered. It's called an "input filter" because the "input" (which was stored in its raw form) is being filtered. Input filter settings are not hard to find if you click on "configuration" in the UI.
SOLVED
PHP code was not right.
WRONG code:
CORRECT code:
NOTE:
You CAN place the Menu in whatever region you want by adding this code to that specific region in your page.tpl.php
More details here HERE