SVG logo #860
-
Hi, thanks for the theme! It's great to have a Bootstrap theme. I'm wondering, are we able to use an SVG logo? When I try using it in the filter, it's not showing on the front end, though PNG works fine. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
What do you mean exactly here? There are two SVG logos https://github.com/bootscore/bootscore-child/tree/main/assets/img/logo which are linked in the Lines 47 to 51 in 61df6fc They should just replaced by your own svg files in child-theme. svg's are just images like png, jpg... There is a filter available to change the path to the logos if you want to use a different format or rename the images. Are you sure that path to you svg images is correct? |
Beta Was this translation helpful? Give feedback.
-
This works fine function change_logo_path($logo, $color) { When I am using my svg logos which is in same folder it's not showing, most likely then is problem with svg file |
Beta Was this translation helpful? Give feedback.
-
It seems like the SVG file for the logo is being rendered with a size of 0x0, which is why it's not displaying properly. You can fix this by explicitly setting the width and height attributes for the SVG file, either in the HTML or through CSS. img.d-td-none.me-2 { |
Beta Was this translation helpful? Give feedback.
-
This question is off-topic, but I couldn't find any information. Is there a solution to change logo sizes or the logo URL when users scroll down? Do we need a different class on the header or something else? see example here |
Beta Was this translation helpful? Give feedback.
What do you mean exactly here? There are two SVG logos https://github.com/bootscore/bootscore-child/tree/main/assets/img/logo which are linked in the
header.php
. Default one and one that is used in dark mode:bootscore/header.php
Lines 47 to 51 in 61df6fc