SVG for logo header Topic is solved

General questions relating to Joomla! 4.x.

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
Post Reply
mikewitherell
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 14, 2022 4:52 pm

SVG for logo header

Post by mikewitherell » Tue Jun 06, 2023 4:05 pm

Can the joomla 4 header have an .svg file for a logo? Instead of .png?

gws
Joomla! Champion
Joomla! Champion
Posts: 5445
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: SVG for logo header

Post by gws » Tue Jun 06, 2023 5:00 pm

Yes

mikewitherell
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 14, 2022 4:52 pm

Re: SVG for logo header

Post by mikewitherell » Tue Jun 06, 2023 6:56 pm

Hmmmm. When I try to upload it and use it, the message says filetype not supported. Is there a workaround?

gws
Joomla! Champion
Joomla! Champion
Posts: 5445
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: SVG for logo header

Post by gws » Tue Jun 06, 2023 7:07 pm

Go to options in media and check if it is an allowed type,if not add it.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: SVG for logo header

Post by sozzled » Tue Jun 06, 2023 7:38 pm

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. 8)

gws
Joomla! Champion
Joomla! Champion
Posts: 5445
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: SVG for logo header

Post by gws » Tue Jun 06, 2023 8:00 pm

@sozzled good tip.

mikewitherell
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 14, 2022 4:52 pm

Re: SVG for logo header

Post by mikewitherell » Tue Jun 06, 2023 8:23 pm

I did go to check the media allowed types, but that didnt help. Next I will try FTP.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: SVG for logo header

Post by sozzled » Tue Jun 06, 2023 8:29 pm

You "checked" the allowed media types? Have a look at this video: https://www.[youtube].com/watch?v=DoldVDKP1QI.

mikewitherell
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 14, 2022 4:52 pm

Re: SVG for logo header

Post by mikewitherell » Tue Jun 06, 2023 10:08 pm

Perhaps I should say that I edited the allowed filetypes under Media: Options, and added in SVG.

mikewitherell
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 14, 2022 4:52 pm

Re: SVG for logo header

Post by mikewitherell » Tue Jun 06, 2023 10:13 pm

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?

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: SVG for logo header

Post by sozzled » Tue Jun 06, 2023 10:19 pm

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.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 16541
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: SVG for logo header

Post by toivo » Tue Jun 06, 2023 10:46 pm

The following topic and @ceford's media component may give some answers:
svg as logo (in cassiopeia)
Joomla 4x Component - Ffmedia
Toivo Talikka, Global Moderator

mikewitherell
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 14, 2022 4:52 pm

Re: SVG for logo header

Post by mikewitherell » Tue Jun 06, 2023 11:39 pm

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.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1342
Joined: Tue Jun 30, 2020 12:17 pm

Re: SVG for logo header

Post by Pavel-ww » Wed Jun 07, 2023 7:43 am

mikewitherell wrote:
Tue Jun 06, 2023 6:56 pm
Hmmmm. When I try to upload it and use it, the message says filetype not supported. Is there a workaround?
Hi. It is not possible to configure the standard media manager for uploading SVG. Yes, uploading via FTP is a solution.
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.
--
mikewitherell wrote:
Tue Jun 06, 2023 11:39 pm
For some reason, once I substituted the svg logos into the template, I no longer needed the custom.css code.
Because SVG is not an image, but a code. The code cannot be distorted

mikewitherell
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 14, 2022 4:52 pm

Re: SVG for logo header

Post by mikewitherell » Wed Jun 07, 2023 9:21 pm

Thanks for the excellent guidance!


Post Reply

Return to “General Questions/New to Joomla! 4.x”