News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Place main menu inside header leaving an empty space below

Started by d3vcho, August 17, 2016, 07:53:53 AM

Previous topic - Next topic

d3vcho

Hello!

I want to place the main menu inside the header, leaving an empty space below. I could place the main menu inside the heather, but then the dropmenu wasn't displayed. The space is shown in the image (is the space where the main menu is actually placed).

I don't know where exatcly I must place the template menu.

Thank you
"Greeting Death as an old friend, they departed this life as equals"

Antes

You are putting main_menu inside upper_section. Add the menu after the upper_section. That's the closing code after news section. Add your menu there.

echo '
</div>
</div>
<br class="clear" />';


Final code should be something like this;

echo '
</div>
</div>
<br class="clear" />';

// Show the menu here, according to the menu sub template.
template_menu();

d3vcho

The menu it's placed there. What I want to do is to place the menu in the upper div in the image, right after avatar.

EDIT: It was a mistake made by me in the code. It's working now.

Thank you, Antes :)
"Greeting Death as an old friend, they departed this life as equals"

Advertisement: