Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.

3.2 & 3.3 Extensions Database 3.2 / 3.3Custom Header Logo

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Pingui
Donator
Donator
Status: Offline
User theme: Dark
Posts: 74
Joined: Oct 14th, '15, 17:10
    Windows 10 Chrome

Re: Custom Header Logo

Post by Pingui »

Good afternoon and Merry Christmas!

Sorry for my mistake, this ext works perfectly. The only thing I would like to know is what I would have to do so that the images I put in the header are displayed well even if the size of the header becomes large or small.

As it stands now, if the screen is small, the header image is not shown complete but broken.

Image

I hope you can help me. Thank you so much!.
Be yourself, except if you're stupid, then it is better that you be another one.
I Amiga
- www.WinUAEspanol.com
I know, my english is very bad, sorry...

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Custom Header Logo

Post by dmzx »

First post updated

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Aforce
Users
Users
Status: Offline
User theme: Dark
Posts: 13
Joined: Jan 9th, '20, 10:21
    Windows 10 Firefox

Re: Custom Header Logo

Post by Aforce »

Thanks for this. It makes things much easier for changing the logo rather then editing individual files on multiple forum styles.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

robnms
New user
New user
Status: Offline
User theme: Dark
Posts: 1
Joined: Feb 20th, '20, 14:32
    Windows 7 Chrome

Re: Custom Header Logo

Post by robnms »

I love this extension but I have one problem. On a mobile device the logo is huge and over the page instead of in the header. It displays correctly on my tablet if I turn it sideways but not my phone.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TrekRed
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Oct 27th, '19, 22:54
    Windows 10 Chrome

Re: Custom Header Logo

Post by TrekRed »

It does not shrink in the mobile version, even if you specify the size! It’s not clear why to indicate the sizes, since nothing changes!

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1157
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Custom Header Logo

Post by Sniper_E »

It is good to set the image to max-width: 100% so it will shrink for mobile. Even your set width for that image will be adjusted.
But sometimes the set height will stay the same when the width shrinks. There are ways around that also. Don't set a height.

Something always changes when you make valid changes. Clear cache and refresh browser.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TRUBLITZ
Users
Users
Status: Offline
User theme: Dark
Posts: 33
Joined: Mar 15th, '18, 13:35
    Android Chrome

Re: Custom Header Logo

Post by TRUBLITZ »

Which ext exactly? Ill install it and see. Problem can be solved using contain or cover.. Or pm me link to your site ill look at it
My Styles
:guns: I AM THE DESCENDANT OF THOSE WHO REFUSE TO BE RULED :guns:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1157
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Custom Header Logo

Post by Sniper_E »


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TRUBLITZ
Users
Users
Status: Offline
User theme: Dark
Posts: 33
Joined: Mar 15th, '18, 13:35
    Windows 8 Chrome

Re: Custom Header Logo

Post by TRUBLITZ »

Open:
ext/dmzx/chl/styles/prosilver/template/event/overall_header_stylesheets_after.html

Line 20 Find

Code: Select all

@media only screen and (max-width: 750px), only screen and (max-device-width: 750px) {
	span.site_logo {
		background:url("{{ SITE_LOGO_IMG }}") no-repeat;
		background-position: 0% 0%;
		max-width: 100%;
		background-size: 80%;
		background-position: center center;
	}
Inline:

Code: Select all

background-size: 80%;
Control the size of the logo image. Change 80% to "auto" or 1% - 100% "20% seems to work ok with a image 200 in width. Also Check line 12 and line 48 Enjoy.

Save, dump your cache ..

Fixed.
Image6.jpg
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TrekRed
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Oct 27th, '19, 22:54
    Windows 10 Chrome

Re: Custom Header Logo

Post by TrekRed »

Do not plan to additionally make a background change for the page, it would be great!

Change the background to the picture in different forums and topics!

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1157
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Custom Header Logo

Post by Sniper_E »

@TRUBLITZ, that's some nice help you give out. Thanks!

Love the avatar Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TrekRed
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Oct 27th, '19, 22:54
    Windows 10 Chrome

Re: Custom Header Logo

Post by TrekRed »

Do not plan to additionally make a background change for the page, it would be great!

Change the background to the picture in different forums and topics!

Duplicated the message to be the last in the subject! Noticeable! :D

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1157
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Custom Header Logo

Post by Sniper_E »

Roger that. Now I am the last to post. Do you notice that?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TrekRed
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Oct 27th, '19, 22:54
    Windows 10 Chrome

Re: Custom Header Logo

Post by TrekRed »

What's the catch? :lol:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

TRUBLITZ
Users
Users
Status: Offline
User theme: Dark
Posts: 33
Joined: Mar 15th, '18, 13:35
    Windows 8 Chrome

Re: Custom Header Logo

Post by TRUBLITZ »

Sniper_E wrote: Apr 5th, '20, 13:57 @TRUBLITZ, that's some nice help you give out. Thanks!

Love the avatar Image
Thank You!