I am new to phpBB and am using Elegance style 3.2.11 on my board. At some point in the set up I decided I didn't want to have a header/banner displayed on the page and did something to remove/hide it. I now decided I may want the header to display after all but the problem is I stupidly didn't make a note of what I did to remove/hide it in the first place. I have no knowledge of PHP or CSS so I figure I must have found how to do it by searching the support forums but I can't now find where I got the instructions from.
If I switch over to using prosilver style the header is displayed so I guess that means I did something to the Elegance style to remove/hide the header.
Can anybody give me some clues as to how I can get the header to display again?
Missing header on Elegance style - Elegance
-
- Registered User
- Posts: 10
- Joined: Sun Aug 18, 2024 4:08 pm
Re: Missing header on Elegance style
What version of phpbb are you running? I'm guessing 3.2.
I think you made some changes to the theme config files in the elegance/theme folder. Changes should normally be made in the _custom_config.scss file, but maybe you made them in the _style_config.scss file.
Check if the following line is the same in the _style_config.scss file:
$show-logo: true !default; // true or false
If it's not, change it so it matches this one.
Then check the _custom_config.scss file if the same line exists there. If it does you can safely remove it since it's already run by the other file.
If you made any changes to these files run the SCSS Compiler from the admin cp. Hope this helped.
I think you made some changes to the theme config files in the elegance/theme folder. Changes should normally be made in the _custom_config.scss file, but maybe you made them in the _style_config.scss file.
Check if the following line is the same in the _style_config.scss file:
$show-logo: true !default; // true or false
If it's not, change it so it matches this one.
Then check the _custom_config.scss file if the same line exists there. If it does you can safely remove it since it's already run by the other file.
If you made any changes to these files run the SCSS Compiler from the admin cp. Hope this helped.
-
- Registered User
- Posts: 12
- Joined: Mon Apr 29, 2019 11:52 am
Re: Missing header on Elegance style
Thanks for the tips. I looked and the both _style_config.scss and _custom_config.scss file have $show-logo set to true.celticalliance wrote:What version of phpbb are you running? I'm guessing 3.2.
Check if the following line is the same in the _style_config.scss file:
$show-logo: true !default; // true or false
I was running phpBB 3.3.12. Just upgraded to 3.3.13 but the header is still not showing.
I also installed the extension Change Logo 1.0.2. Just wondering if that causes a problem with the header in Elegance so I disabled it and purged the cache but still no header.
-
- Registered User
- Posts: 10
- Joined: Sun Aug 18, 2024 4:08 pm
Re: Missing header on Elegance style
Update....
I had installed Elegance style v 3.2.11 on my board because I wanted to have the option of multiple colour schemes. As it happens i preferred the main colour scheme so I decided I could deinstall the whole of the style and it's child styles an install Elegance style 3.3.12 instead which is the most recent version but which doesn't have the colour variations (which I don't need now anyway). I thought that that would be a way to do a complete reset.
It made no difference - still no header. Or maybe there is but I just can't see it for some reason. My custom logo appears at top left of the page where the header should be - there's just nothing visible to the right of the logo, just empty space.
If I switch over to the prosilver style the header shows up as a blue rectangle with the forum name but without my custom logo.
I'm beginning to question whether I got rid of the header by editing any css or html file after all, because when I look at all the timestamps on the files in my installation I can't find any that are later than the date of the installation.
It has got me stumped
I had installed Elegance style v 3.2.11 on my board because I wanted to have the option of multiple colour schemes. As it happens i preferred the main colour scheme so I decided I could deinstall the whole of the style and it's child styles an install Elegance style 3.3.12 instead which is the most recent version but which doesn't have the colour variations (which I don't need now anyway). I thought that that would be a way to do a complete reset.
It made no difference - still no header. Or maybe there is but I just can't see it for some reason. My custom logo appears at top left of the page where the header should be - there's just nothing visible to the right of the logo, just empty space.
If I switch over to the prosilver style the header shows up as a blue rectangle with the forum name but without my custom logo.
I'm beginning to question whether I got rid of the header by editing any css or html file after all, because when I look at all the timestamps on the files in my installation I can't find any that are later than the date of the installation.
It has got me stumped
-
- Registered User
- Posts: 10
- Joined: Sun Aug 18, 2024 4:08 pm
Re: Missing header on Elegance style
Update 2...
I edited _custom_config.scss to add
Now the forum title and description are showing where the header should be which seems like progress but it still doesn't look like they are inside a header 'block'.
Any other suggestions will be welcomed
I edited _custom_config.scss to add
$show-forum-title: true;
, then re-complied the style.Now the forum title and description are showing where the header should be which seems like progress but it still doesn't look like they are inside a header 'block'.
Any other suggestions will be welcomed
-
- Registered User
- Posts: 10
- Joined: Sun Aug 18, 2024 4:08 pm
Re: Missing header on Elegance style
Hi,
If I understand correctly, you want to remove the line containing the logo. To do this, add the following code to the _custom.scss file and compile the style.
For compilation you can use this extension:
https://www.phpbb.com/customise/db/exte ... _compiler/
Best.
If I understand correctly, you want to remove the line containing the logo. To do this, add the following code to the _custom.scss file and compile the style.
Code: Select all
.headerbar {
display: none;
}
#page-header {
margin-top: 10px;
}
https://www.phpbb.com/customise/db/exte ... _compiler/
Best.
Buy me a coffee
Hire me for your phpBB board.
Introducing Mobile Upgrade! Make your phpBB board like an app!
O Belde • ThatTowns*for sale*
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
Hire me for your phpBB board.
Introducing Mobile Upgrade! Make your phpBB board like an app!
O Belde • ThatTowns*for sale*
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
-
- Registered User
- Posts: 1397
- Joined: Fri Jul 24, 2020 11:30 pm
- Location: Turkiye
- Name: Halil
Re: Missing header on Elegance style
Sorry for this late response. I'm quite confused as well. But first, did the code in the post above fix anything?
Changing the logo is normally quite a straightforward process. I usually replace the default logo with my own custom logo (using the default name), change some code in the custom config file to center it, re-compile the stylesheet and it's done.
What's the link to your forum?
Changing the logo is normally quite a straightforward process. I usually replace the default logo with my own custom logo (using the default name), change some code in the custom config file to center it, re-compile the stylesheet and it's done.
What's the link to your forum?
-
- Registered User
- Posts: 12
- Joined: Mon Apr 29, 2019 11:52 am