SVG for logo header Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
SVG for logo header
Can the joomla 4 header have an .svg file for a logo? Instead of .png?
-
- Joomla! Champion
- Posts: 5445
- Joined: Tue Aug 23, 2005 1:56 pm
- Location: South coast, UK
- Contact:
Re: SVG for logo header
Yes
http://www.gadsolutions.biz Electrical services
http://www.electrical-testing-safety.co.uk Testing services
http://www.electrical-testing-safety.co.uk Testing services
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: SVG for logo header
Hmmmm. When I try to upload it and use it, the message says filetype not supported. Is there a workaround?
-
- Joomla! Champion
- Posts: 5445
- Joined: Tue Aug 23, 2005 1:56 pm
- Location: South coast, UK
- Contact:
Re: SVG for logo header
Go to options in media and check if it is an allowed type,if not add it.
http://www.gadsolutions.biz Electrical services
http://www.electrical-testing-safety.co.uk Testing services
http://www.electrical-testing-safety.co.uk Testing services
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: SVG for logo header
I agree with @gws; that's the correct way to address the matter. As a workaround, instead of modifying the media options, you can upload any file (e.g. an image in SVG format) to any folder using FTP. 

-
- Joomla! Champion
- Posts: 5445
- Joined: Tue Aug 23, 2005 1:56 pm
- Location: South coast, UK
- Contact:
Re: SVG for logo header
@sozzled good tip.
http://www.gadsolutions.biz Electrical services
http://www.electrical-testing-safety.co.uk Testing services
http://www.electrical-testing-safety.co.uk Testing services
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: SVG for logo header
I did go to check the media allowed types, but that didnt help. Next I will try FTP.
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: SVG for logo header
You "checked" the allowed media types? Have a look at this video: https://www.[youtube].com/watch?v=DoldVDKP1QI.
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: SVG for logo header
Perhaps I should say that I edited the allowed filetypes under Media: Options, and added in SVG.
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: SVG for logo header
FTP worked. I uploaded a black text version of my logo in svg. Also a white text version in svg.
I chose them from within the Site Template Styles Basic section.
Looks great on desktop and horizontal iPad.
But...
Won't show at all on vertical iPad.
Won't show at all on H and V smartphone (an iPhone 12 Pro Max)
... so I changed them back to the png logo versions.
Why won't the SVG show all the way across the tablet and smartphone versions?
I chose them from within the Site Template Styles Basic section.
Looks great on desktop and horizontal iPad.
But...
Won't show at all on vertical iPad.
Won't show at all on H and V smartphone (an iPhone 12 Pro Max)
... so I changed them back to the png logo versions.
Why won't the SVG show all the way across the tablet and smartphone versions?
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: SVG for logo header
I don't know anything about the problems you're having with using an SVG image as your logo. My involvement in this discussion is only in reference to uploading such files to your website.
As far as why any image will not display nicely on different devices, it's probably related to the template you've chosen to use. I don't know the specific cause and I'm just making an educated guess.
As far as why any image will not display nicely on different devices, it's probably related to the template you've chosen to use. I don't know the specific cause and I'm just making an educated guess.
- toivo
- Joomla! Master
- Posts: 16541
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: SVG for logo header
The following topic and @ceford's media component may give some answers:
svg as logo (in cassiopeia)
Joomla 4x Component - Ffmedia
svg as logo (in cassiopeia)
Joomla 4x Component - Ffmedia
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: SVG for logo header
On a hunch, I took out the custom.css code that a helpful person named Pavel wrote for me a few days ago. It was needed to display the logos without distortion when you rotate a tablet H and V.
For some reason, once I substituted the svg logos into the template, I no longer needed the custom.css code. When I removed the custom.css code, all the devices displayed the logo correctly. So, right now, the desktop, the tablet, and the smartphone are all displaying the svg logos correctly, including Horizontal and Vertical views.
For some reason, once I substituted the svg logos into the template, I no longer needed the custom.css code. When I removed the custom.css code, all the devices displayed the logo correctly. So, right now, the desktop, the tablet, and the smartphone are all displaying the svg logos correctly, including Horizontal and Vertical views.
- Pavel-ww
- Joomla! Ace
- Posts: 1342
- Joined: Tue Jun 30, 2020 12:17 pm
Re: SVG for logo header
Hi. It is not possible to configure the standard media manager for uploading SVG. Yes, uploading via FTP is a solution.mikewitherell wrote: ↑Tue Jun 06, 2023 6:56 pmHmmmm. When I try to upload it and use it, the message says filetype not supported. Is there a workaround?
But also there are other ways. You can use some alternative media manager:
- Quantum Manager allows you to upload the SVG and has a number of extended options compared to the standard media manager. You can add its button to the upper level of Admin menu, which is very convenient.
- FF Explorer - files and database manager inside your Joomla admin panel. Including allows you to upload the SVG (the same as via FTP).
I always use both, in all my projects.
- SP Page Builder media manager allows you to upload the SVG. If you use SP Page Builder, you can use its media manager for images uploading instead of standard media manager.
--
Because SVG is not an image, but a code. The code cannot be distortedmikewitherell wrote: ↑Tue Jun 06, 2023 11:39 pmFor some reason, once I substituted the svg logos into the template, I no longer needed the custom.css code.
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: SVG for logo header
Thanks for the excellent guidance!