@downpw ooops. Forgot that. Thanks for adding.
NodeBB customisation
-
@jac Easily done, but it’s not entirely “simple”
This is the CSS that handles that
.Hero { background: #8A8C8E; position: sticky; left: 0; right: 0; margin-left: -50vw; margin-right: -50vw; width: 100vw; z-index: 500; padding-top: 10px; margin-top: -20px; margin-bottom: 30px; height: 70px; color: #ffffff; } ul.PageHero-items li { list-style: none; text-align: center; } .PageHero-title { vertical-align: middle; font-size: 3rem!important; color: #ffffff; font-family: Poppins; display: inline-block; margin-left: 15px; max-width: 800px; } h2.PageHero-title::after { display: flex; margin: -10px 0 0!important; font-size: 2rem; font-weight: 300; -webkit-background-clip: text!important; -webkit-text-fill-color: transparent; background: -webkit-linear-gradient(#fff,#aaa); line-height: 2.0; font-family: poppins; }
You’ll then need a global widget with this code
<header class="Hero PageHero"> <div class="container"> <ul class="PageHero-items"> <li class="item-title"> <h2 class="PageHero-title">{title}</h2> </li> </ul> </div> </header>
-
-
@jac said in NodeBB customisation:
@phenomlab said in NodeBB customisation:
Easily done, but it’s not entirely “simple”
Will have a look thanks mate.
-
@jac I can assist of course…
-
-
@phenomlab I have ran into the not entirely “simple” part .
-
@jac look to have fixed
-
-
@jac That’s caused by the recent cards plugin, which is being loaded first. You’ll need to remove or re-position that widget
-
@phenomlab Thanks mate, I’ve been trying to rearrange it so the recent cards widget falls under the banner.
-
@jac Not hard to do (potentially) but it would mean changing the loading order of the plugins. Let me have a look.
-
@phenomlab said in NodeBB customisation:
@jac Not hard to do (potentially) but it would mean changing the loading order of the plugins. Let me have a look.
Many thanks mate.
I think the issue falls as one widget is global and the other is situated under categories.
-
@jac Unfortunately, no. It’s the loading order of the plugin. I’ve changed it, but it doesn’t seem to have any impact, so the only “fix” is to remove the recent cards widget or place it elsewhere.
-
@phenomlab said in NodeBB customisation:
@jac Unfortunately, no. It’s the loading order of the plugin. I’ve changed it, but it doesn’t seem to have any impact, so the only “fix” is to remove the recent cards widget or place it elsewhere.
Thanks for trying mate.
That’s fine with me for it to be placed elsewhere.
-
@jac Ok. If you check your site, you’ll see it’s been moved to drafts for the time being so won’t be displayed.
-
@phenomlab Thank you, is there any way to change to a bolder font? or does this include google fonts again? I do have one in mind but need to add it.
-
@jac said in NodeBB customisation:
@phenomlab Thank you, is there any way to change to a bolder font? or does this include google fonts again? I do have one in mind but need to add it.
https://fonts.google.com/?preview.text=Stockport County&preview.text_type=custom&preview.size=53
well… there’s a few. I wonder if these can be mixed and matched? One for titles, one for categories etc?
-
@jac said in NodeBB customisation:
is there any way to change to a bolder font?
Yes, you need to target the text itself - see below (900 = heavy, 600 = bold, 400 = standard, 300 = light)
.PageHero-title { font-weight: 900; }
-
@jac They can, but you will impact the loading speed of your site with too many fonts. Best to pick 2-3 max.
-
@phenomlab said in NodeBB customisation:
@jac They can, but you will impact the loading speed of your site with too many fonts. Best to pick 2-3 max.
Thanks mate, I’ll try one now.
Related Topics
-
-
[NODEBB] Stats
Unsolved Customisation -
-
NodeBB Footer
Solved Customisation -
-
NodeBB Discord Plugins
Unsolved Customisation -
-
Customising NodeBB
Locked Customisation