News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Can i move the logo on the same line with nav menus?

Started by mulwa, October 11, 2014, 05:15:36 PM

Previous topic - Next topic

mulwa

Hey, please help, i wanna move the logo to be on the same line with nav menu at the left hand side. Please Help
Thanks Masters!

Chalky

You're going to have to give us a bit more to go on than that  ;)

Which version of SMF are you using?
Which theme are you using? If not default you should ask this question to the theme author, on the theme's dedicated support topic if you got it here.
Pictures that show your forum and where you want the image would be helpful, as would a link to your forum.

Hj Ahmad Rasyid Hj Ismail

As I said, my themes Revamp SMF and SimpleRevamp do this. Each is using different approach but your need can be dealt with the mod in the former. You can search them here: http://custom.simplemachines.org/themes/index.php?action=search;basic_search=revamp

Basically, you need to modify index.template.php and if needed, the css file and you do it by:
1. Disabling the current forum name and logo either by removing the code or comment them out.
2. You add the code as suggested by the themes i.e. in the menu part.

E.g. Find:
echo '
<div id="main_menu">
<ul class="dropmenu" id="menu_nav">';


Replace it with:
echo '
<div id="main_menu">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>
<ul class="dropmenu" id="menu_nav">';


It is a little bit tricky but is not that difficult. An as said, you will need to edit your css for forum title h1 class accordingly. I already suggested on how to move the menu to the right in my other post. I hope you remember that.

This however will not cover the toggle button.

Advertisement: