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
This tutorial has been superseded by a theme component courtesy of @Johani .
outdated tutorial If you just want the CSS and header info, skip to the end of this post. Any DOW references are specific to my site, <a href="http://driveonwood.com" rel="noopener nofollow ugc">http://driveonwood.com</a> - just substitute your own.
To see this code live, visit <a href="http://forum.driveonwood.com" rel="noopener nofollow ugc">http://forum.driv…
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