MyBB Community Forums

Full Version: Get rid of parts of the Header in the Portal ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know how to get rid of the WELCOME thingy from above the forum while being in the Portal ?

So that from...

http://i.imgur.com/n5IHu.jpg

only this...

http://i.imgur.com/YgP8c.jpg

remains ?

Since the Portal takes in the whole header, how to get rid of that specific part ? Any help is appreciated.

Cheers

Wolfseye
Use CSS to hide the block the welcome panel is in.

So if that block's class is panel, in the top of the portal file try something like

<style type="text/css">
.panel {display:none;}
</style>
Well, whats in the portal template is the {$header}. So thats not really specific. It means, as I see it, that it includes everything related to the Header. From the logo downwards all that. So just adding that what you posted above, into the portal template, I doubt that will change it.

Would it be possible to create a copy of the header template, like header2, thats almost identical to the original but doesn't have the things I dont want to show in the portal ?
The {$header} contains the header and the welcome blocks templates which are part of the header.

I assure you it WOULD hide it if you targeted the right bit. I know this because I do this all the time.

so in your portal template, try this:

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<style type="text/css">
#panel {display:none;}
}
</style>
</head>
<body>
{$header}
rest of your portal template here

Thanks Lee, that worked indeed. Wink Thank you very much. Now I just have to find how to center my top menu and then it looks good.

Wolfseye