From my pc desktop, via the inspector in firefox, the css tag that manipulates logo height is:
.d-header .title {
--d-logo-height: 4em;
}
However, I notice that when I plug in this css tag in the default theme in the css editor under desktop, it does nothing to the logo height as viwed on my pc desktop nor mobile phone.
However, if I plug in the same css code under mobile it changes the logo height not only on my pc dektop but on mobile phone too. Is this a bug in discourse or am i
missing something.
It’s always good practice to try and frame a request for help a bit better. Lot of people here are super eager to help, but there are so many ways things can be done, that a good explanation is crucial to get help asap
Also, if you’re testing things locally, don’t forget to append ?mobile_view=1 to the url.
From my pc desktop, via the inspector in firefox, the css tag that manipulates logo height is:
.d-header .title {
--d-logo-height: 4em;
}
However, I notice that when I plug in this css tag in the default theme in the css editor under desktop, it does nothing to the logo height as viwed on my pc desktop nor mobile phone.
However, if I plug in the same css code under mobile it changes the logo height not only on my pc dektop but on mobile phone too. Is this a bug in discourse or am i
missing something.
Thanks, I jumped on a different machine, one running ubuntu 22.04 (web server) the CSS code in the desktop CSS bucket rendered correctly, so perhaps a Browser issue on my other PC desktop running Windows 7.
I did notice that I appear to be limited in Mobile CSS bucket to:
.d-header #site-logo {
height: 3em;
}
Any attempt to go beyond 3em doesn’t increase the logo height on my cell phone, GS23 - even after I refresh the cache.
Thanks for the input I couldn’t find that option under settings is that done through CSS or a command line input in rails and if so what does that look like
Thanks Charlie I appreciate it.
I’m familiar with using inspector, e.g. firefox and deriving some solutions.
Any thoughts why logo resizing is not part of the core functionality within discourse. Branding of any website is critical and the lack of granularity in this respect is surprising.
“Logo manipulation” is perfectly possible, just like all other types of styling, within themes and theme components.
You will just either need to learn the basics of html/css/js and go through the plentitude of documentation on meta to get things done yourself, or you’ll need to look for someone you can hire to make your desired changes.
I personally would not expect a company logo sizing to be a part of a forum platform’s core functionality. Moreover, our software is open source and we do provide such support to help you accomplish this as we did above. We also offer lots of info on learning to develop your own customizations.