caub
(Cyril Auburtin)
February 27, 2017, 2:27pm
1
I know it’s possible to add another header on top of it, but I don’t understand the reason for that huge blank with only a floated left logo and floated right icons.
I tried putting some remote site links at the middle, with js on page DOMContentLoaded, but it messes a lot with the rest of ember app
Why not allowing to fill this gap in configurations?
example:
cpradio
(cpradio)
February 27, 2017, 2:34pm
2
Sure there is.
Oh this is interesting, if you take that code and change it to
<script type="text/discourse-plugin" version="0.4">
api.decorateWidget('header-buttons:after', helper => {
const showExtraInfo = helper.attrs.minimized;
if(!showExtraInfo) {
return helper.h('a.blog-link', {href:'https://blog.example.com', target:'_blank'}, 'Visit our blog');
}
});
</script>
It will open in a new window just fine.
So there seems to be a difference in how the clicks are handled when i…
And
If you just want the CSS and header info, skip to the end of this post. Any DOW references are specific to my site, http://driveonwood.com - just substitute your own.
To see this code live, visit http://forum.driveonwood.com . Try resizing the window, open it in Firebug etc.
Disclaimer, I’m not a CSS pro, just a tinkerer. There’s likely code presented here that is sub-optimal, extraneous, or incomplete. I have not tested this code apart from my main body of CSS customizations. No lifeguard on d…
And
Feverbee also has header links that I helped them out with, they are using this code:
<script type="text/discourse-plugin" version="0.2">
api.decorateWidget('home-logo:after', helper => {
const showExtraInfo = helper.attrs.minimized;
if(!showExtraInfo) {
return helper.h('ul.nav-link-container', [
helper.h('li.hidden-for-mobile', [
helper.h('a.nav-link', {
href:'https://www.feverbee.com/resources',
…
Or through overriding the template
10 Likes
Dax
(Daniela)
January 21, 2019, 6:22pm
3
The easiest way to do that is using our theme components
3 Likes