News:

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

Main Menu

Remove the drop down menu.

Started by itskadenhere, June 15, 2016, 10:17:26 PM

Previous topic - Next topic

itskadenhere

How do I remove the drop down menu that shows
"Hello itskadenhere
Show unread posts" etc
I have SimplePortal and I see no need for this.  Thank you!

Grammy

Quote from: itskadenhere on June 15, 2016, 10:17:26 PM
How do I remove the drop down menu that shows
"Hello itskadenhere
Show unread posts" etc
I have SimplePortal and I see no need for this.  Thank you!


If it's SMF 2.0.11 default (or any other version, but default), just click the little triangle (or whatever) at the top right, just under the header and above the search field and collapse it.  You can click it again to uncollapse.   :)

itskadenhere

Thank you! This is not what I need though. I want it removed for all users, because Simple Portal has a block that already displays a login, aswell as the time and other things. I've done this before but I've had issues finding the exact code edit to accomplish this.

Sir Osis of Liver

Which theme are you using?  Userinfo is not usually a dropmenu.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

I think he means the entire header with the user information, welcome, avatar, new posts link, new replies link, etc...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

itskadenhere

Quote from: Sir Osis of Liver on June 16, 2016, 03:58:16 PM
Which theme are you using?  Userinfo is not usually a dropmenu.
I'm using The Gray. A simple search for "SMF Theme The Gray" should bring it up.

Quote from: Kindred on June 16, 2016, 08:47:30 PM
I think he means the entire header with the user information, welcome, avatar, new posts link, new replies link, etc...
That's correct.

Sir Osis of Liver

If you want the header to always be collapsed, in index.template.php -

This will collapse the header -



// Define the upper_section toggle in JavaScript.
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var oMainHeaderToggle = new smc_Toggle({
bToggleEnabled: true,
bCurrentlyCollapsed: true,
aSwappableContainers: [
\'upper_section\'
],



This will remove the button -



// the upshrink image, right-floated
echo '
<!--img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt

['upshrink_description'], '" style="display: none;" /-->';


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

*Having nothing better to do, Sir Osis will satisfy the fussy css wonks.*

Another way to hide the button -

/css/index.css



/* the upshrink image needs some tweaking */
img#upshrink
{
float: right;
margin: 1em;
display: none;
}



This removes the button entirely, and causes site slogan to shift right.

Or you can do this -



/* the upshrink image needs some tweaking */
img#upshrink
{
float: right;
margin: 1em;
visibility: hidden;
}



This hides the button without affecting formatting of other elements.

But, IMHO, it's easier (and safer) for a noob to edit one file rather than two.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Antechinus

Quote from: Sir Osis of Liver on June 17, 2016, 11:01:49 PM
*Having nothing better to do, Sir Osis will satisfy the fussy css wonks.*

Another way to hide the button -

/css/index.css



/* the upshrink image needs some tweaking */
img#upshrink
{
float: right;
margin: 1em;
display: none;
}


Bloated code. :P If you're going to hide it anyway, there's no point leaving the float and margin.

Sir Osis of Liver

<sigh>

It's easier to revert back, if necessary, if you minimize code changes.

Fussy wonk.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: