caub
(Cyril Auburtin)
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)
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 לייקים
dax
(Daniela)
21 בינואר, 2019, 6:22pm
3
The easiest way to do that is using our theme components
This guide is crafted for users who want to spruce up their site’s header by adding links, icons, or menus. Whether you’re using simple theme components or opting for more intricate customizations, this manual provides clear, step-by-step instructions to help you make the desired changes, no matter your level of technical know-how.
Required user level: Administrator
The easy way (Theme Components)
Each theme component is different, so read the topics related…
3 לייקים