openwonk
(openwonk)
21. Februar 2019 um 07:55
1
I want to replace the image logo with a text version, specifically a full width text version.
Here’s an HTML version.
<p>
<span id="outp" style="font-weight: bold;">AWESOME <span>
<span id="outp">LOFTS</</span>
</p>
I’m new to Discourse.
I’ve tried creating a new component and even inject some Javascript, however it does run on window.onload
.
Here’s some example Javascript that should reproduce the goal.
var o = document.getElementById("site-text-logo")
if(o.outerHTML) { //if outerHTML is supported
o.outerHTML = `<p>
<span id="outp" style="font-weight: bold;">AWESOME </span>
<span id="outp">LOFTS</span>
</p>`
}
How would I do this?
1 „Gefällt mir“
dax
(Daniela)
21. Februar 2019 um 13:34
2
If you delete the image in the site setting logo
, the text of the site setting title
will appear:
Then you need to customize it with CSS and add some media queries for other devices.
5 „Gefällt mir“
openwonk
(openwonk)
21. Februar 2019 um 19:29
3
Thanks
I’m able to get text, however I’m not aware of a CSS way of changing text to “full width”, because “full width” is not a font, rather they are different characters.
openwonk
(openwonk)
21. Februar 2019 um 20:31
4
I think it would be similar if I wanted to insert special unicode characters into the text title
dax
(Daniela)
26. Februar 2019 um 09:02
5
Well, you need only to copy/paste “full width” in the site setting “title”…
4 „Gefällt mir“