No Code Attached Yet ?
avatar PhocaCz
PhocaCz
1 Jan 2023

Steps to reproduce the issue

  • Go to Site Template Styles - edit Cassiopeia - set SVG logo/image:

Select image

  • Save

Expected result

SVG logo should be displayed

Actual result

SVG logo is not displayed

image

Path is correct, if template.css will be disabled, the logo is displayed

image

System information (as much as possible)

Joomla 4.2.6
PHP 8.1

Additional comments

avatar PhocaCz PhocaCz - open - 1 Jan 2023
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jan 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Jan 2023
avatar brianteeman
brianteeman - comment - 2 Jan 2023

should be closed as a duplicate of #39543

really no point in creating multiple issues for the same problem

avatar PhocaCz
PhocaCz - comment - 2 Jan 2023

This is not a duplicate issue, even if I set the width and height manually for the SVG, it still does not display the SVG image. These are two different problems

#39543 - zero is wrongly set but if manually corrected, the SVG ist still not displayed

image

avatar PhocaCz
PhocaCz - comment - 2 Jan 2023

Please read carefully the first post:

"Path is correct, if template.css will be disabled, the logo is displayed"

This seems like some problem in template.css

image

avatar brianteeman
brianteeman - comment - 2 Jan 2023
img {
  width: 100%;
}

or to be more specific

.brand-logo img {
  width: 100%;
}

deleted

avatar bembelimen
bembelimen - comment - 2 Jan 2023

not rocket science for someone who has developed as many extensions as you.

Is this needed?

avatar PhocaCz
PhocaCz - comment - 2 Jan 2023

not rocket science for someone who has developed as many extensions as you.

This is a problem report

  • it might be a Cassiopeia template issue - then it might be valuable information for the Cassiopeia template development team
  • also it could be a problem with saving parameters for images path - this could be valuable information for core developers

No comments on repeated personal attacks on users who report some issue. It's a recurring theme that has contributed to the decline in Joomla's popularity, but someone else has to deal with that.

avatar brianteeman
brianteeman - comment - 2 Jan 2023
  • it might be a Cassiopeia template issue - then it might be valuable information for the Cassiopeia template development team

You already identified it is an issue in the template with your test removing the css

  • also it could be a problem with saving parameters for images path - this could be valuable information for core developers

Again you identified it as an issue with the template by temoving the css

No comments on repeated personal attacks on users who report some issue. It's a recurring theme that has contributed to the decline in Joomla's popularity, but someone else has to deal with that.

apologies for letting my frustration get the better

avatar PhocaCz
PhocaCz - comment - 2 Jan 2023

You already identified it is an issue in the template with your test removing the css

Yes, but I can't say it's 100% a CSS problem, because that CSS can be built on an HTML parameter that can be wrong.

So, there can be two problems
a) in template.css
b) but even in HTML which doesn't deliver what template.css expects

avatar chmst chmst - change - 4 Jan 2023
Labels Added: ?
avatar chmst chmst - labeled - 4 Jan 2023
avatar prajwalah28
prajwalah28 - comment - 8 Jan 2023

in css file
img {
width: 100%;
}

.brand-logo img {
width: 100%;
}

avatar richard67 richard67 - close - 8 Jan 2023
avatar richard67
richard67 - comment - 8 Jan 2023

Closing as having a pull request. Please test #39574 . Thanks in advance.

avatar richard67 richard67 - change - 8 Jan 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-01-08 17:14:19
Closed_By richard67
avatar AmyKrizanWang
AmyKrizanWang - comment - 20 Apr 2023

Steps to reproduce the issue

  • Go to Site Template Styles - edit Cassiopeia - set SVG logo/image:

Select image

  • Save

Expected result

SVG logo should be displayed

Actual result

SVG logo is not displayed

image

Path is correct, if template.css will be disabled, the logo is displayed

image

System information (as much as possible)

Joomla 4.2.6 PHP 8.1

Additional comments

Hi there,
Does anyone have a good solution on how to fix the SVG file not displaying yet? need some help here, please.
Running the J4.3.0 version with the Cassiopeia template, the header and footer logo will not display svg logo.
For the header logo, if I add a "Tagline" description for the SVG file, then the logo will be displayed alone with the Tagline content.

Content > Media > Options >Media added "Allowed Exentions" == svg,SVG
Legal image Extentions (File Types) == svg
Legal MIME Types == image/svg+xml,application/svg+xml

rebooted the apache server, no luck!

Thank you ;-)

avatar brianteeman
brianteeman - comment - 20 Apr 2023

unable to replicate this - sorry

avatar AmyKrizanWang
AmyKrizanWang - comment - 20 Apr 2023

For Header logo fixer:
How to get Joomla4 with Cassiopeia Template to work

J4 dashboard > Content > Media > Create a new Folder "svgs"
ftp upload your svg logo file to this folder
/var/www/html/images/svgs/upload the logo

Topright "Options" in the Media
Allowed Extensions > add > "svg,SVG"
Legal Image Extensions (File Types) > add > "svg"
Legal MIME Types > add > ",image/svg+xml,application/svg+xml"

SAVE

J4 dashboard > System > Templates > Site Template Styles > Cassiopeia - Default >

/images/svgs/header-logo.svg

Tagline (this is a must-step):
i have added 20x The &nbsp entity " "

SAVE

I will update once i have a fixer for the Footer svg file ;-)

avatar brianteeman
brianteeman - comment - 20 Apr 2023

@AmyKrizanWang as stated before. I can not replicate this issue. It works perfectly for me without doing anything with the tagline

Add a Comment

Login with GitHub to post a comment