If the theme is installed into themes folder without a subfolder contrib like
/themes/olivero
instead of
/themes/contrib/olivero
the theme logo has a wrong path and is not shown.
How can we repair this?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | site_logo_path_issue-3191808-07.patch | 646 bytes | lokeshsahu |
| #7 | after-patch.png | 80.64 KB | lokeshsahu |
| #7 | before-patch.png | 86.59 KB | lokeshsahu |
Comments
Comment #2
drupalfan2 commentedComment #3
mohit.bansal623 commentedThis is working fine. I am not able to replicate this issue.
Actually this setting "Use the logo supplied by the theme" was not tick in theme settings. I ticked and the logo appears without any issue.
Comment #4
drupalfan2 commentedThe problem seems to be in debug.js file beginning on line 15:
In this line:
<img src=\"/themes/contrib/olivero/logo.svg\" alt=\"Home\">\n </a>";there is a fixed path for the logo.
Comment #5
lokeshsahu commentedThere is a fixed path for the site logo in debug.js file. That makes the site logo hidden.
Comment #6
lokeshsahu commentedComment #7
lokeshsahu commentedI have created a patch for the above issue and attached a screenshot for reference.
Please review.
Comment #8
lokeshsahu commentedI have created a patch for the above issue and attached a screenshot for reference.
Please review.
Comment #9
drupalfan2 commentedThank you.
But I think we need a different patch. Or even better it would be to change the path problem in dev Version of the Olivero theme.
We need a solution where any path will work, not only a fixed path. Themes can be installed to /themes oder /themes/contrib and any other location like /themes/mycategorie and other variants. Any other path is possible.
Comment #10
drupalfan2 commentedComment #11
tushar_sachdeva commentedComment #12
tushar_sachdeva commentedWe can try the path
<img src="{{ directory }}/themename/logo.svg" alt="Home\" />,it will solved the path problem in dev Version of the Olivero theme.Comment #13
tushar_sachdeva commentedComment #14
tushar_sachdeva commentedComment #15
tushar_sachdeva commentedComment #16
seutje commentedThis doesn't really seem relevant anymore since Olivero is in core. Feel free to re-open if I'm mistaken.