Skip to content

NodeBB customisation

Locked Customisation
332 4 314.6k 1
  • @jac Yes, you can use this CSS

    .topic [component="post/header"] {
        font-family: "Arial";
    

    Note that font-family is an example. It can be any font you desire as long as it is available on the site.

    wrote on last edited by

    @phenomlab said in NodeBB customisation:

    @jac Yes, you can use this CSS

    .topic [component="post/header"] {
        font-family: "Arial";
    

    Note that font-family is an example. It can be any font you desire as long as it is available on the site.

    Thanks mate, how would I know generally which fonts are available sorry?

  • JAC JAC

    @phenomlab said in NodeBB customisation:

    @jac Yes, you can use this CSS

    .topic [component="post/header"] {
        font-family: "Arial";
    

    Note that font-family is an example. It can be any font you desire as long as it is available on the site.

    Thanks mate, how would I know generally which fonts are available sorry?

    wrote on last edited by

    @phenomlab sorry for the many posts.

    I’ve just looked on mobile view and realised the notification icon is placed over the menu icon?

    IMG_20220114_160040.jpg

  • JAC JAC

    @phenomlab sorry for the many posts.

    I’ve just looked on mobile view and realised the notification icon is placed over the menu icon?

    IMG_20220114_160040.jpg

    wrote on last edited by

    @jac

    test that:

    @media (max-width: 1199px)
    .header .navbar-toggle .notification-icon {
        left: auto;
        right: -8px;
        top: 10px;
    }
    
  • @jac

    test that:

    @media (max-width: 1199px)
    .header .navbar-toggle .notification-icon {
        left: auto;
        right: -8px;
        top: 10px;
    }
    
    wrote on last edited by

    @downpw said in NodeBB customisation:

    @jac

    test that:

    @media (max-width: 1199px)
    .header .navbar-toggle .notification-icon {
        left: auto;
        right: -8px;
        top: 10px;
    }
    

    Thanks, will try that pal 👍🏻.

  • JAC JAC

    @downpw said in NodeBB customisation:

    @jac

    test that:

    @media (max-width: 1199px)
    .header .navbar-toggle .notification-icon {
        left: auto;
        right: -8px;
        top: 10px;
    }
    

    Thanks, will try that pal 👍🏻.

    wrote on last edited by

    @jac said in NodeBB customisation:

    @downpw said in NodeBB customisation:

    @jac

    test that:

    @media (max-width: 1199px)
    .header .navbar-toggle .notification-icon {
        left: auto;
        right: -8px;
        top: 10px;
    }
    

    Thanks, will try that pal 👍🏻.

    Returns error mate.

    IMG_20220114_165808.jpg

  • JAC JAC

    @jac said in NodeBB customisation:

    @downpw said in NodeBB customisation:

    @jac

    test that:

    @media (max-width: 1199px)
    .header .navbar-toggle .notification-icon {
        left: auto;
        right: -8px;
        top: 10px;
    }
    

    Thanks, will try that pal 👍🏻.

    Returns error mate.

    IMG_20220114_165808.jpg

    wrote on last edited by

    @jac

    whoops sorry, forget {}

    @media (max-width: 1199px)
    {
    .header .navbar-toggle .notification-icon {
            left: auto;
            right: -8px;
            top: 10px;
        }
    }
    
  • @jac

    whoops sorry, forget {}

    @media (max-width: 1199px)
    {
    .header .navbar-toggle .notification-icon {
            left: auto;
            right: -8px;
            top: 10px;
        }
    }
    
    wrote on last edited by

    @downpw said in NodeBB customisation:

    @jac

    whoops sorry, forget {}

    @media (max-width: 1199px)
    {
    .header .navbar-toggle .notification-icon {
            left: auto;
            right: -8px;
            top: 10px;
        }
    }
    

    Many thanks mate 😁.

    How does that look now?

    IMG_20220114_171700.jpg

  • wrote on last edited by

    Yeah play with code for obtain that you want

  • Yeah play with code for obtain that you want

    wrote on last edited by

    @downpw Thanks 😁

  • JAC JAC

    @phenomlab said in NodeBB customisation:

    @jac Yes, you can use this CSS

    .topic [component="post/header"] {
        font-family: "Arial";
    

    Note that font-family is an example. It can be any font you desire as long as it is available on the site.

    Thanks mate, how would I know generally which fonts are available sorry?

    wrote on last edited by

    @jac said in NodeBB customisation:

    @phenomlab said in NodeBB customisation:

    @jac Yes, you can use this CSS

    .topic [component="post/header"] {
        font-family: "Arial";
    

    Note that font-family is an example. It can be any font you desire as long as it is available on the site.

    Thanks mate, how would I know generally which fonts are available sorry?

    Can fonts be imported? Looking for a bold font for titles.

  • JAC JAC

    @jac said in NodeBB customisation:

    @phenomlab said in NodeBB customisation:

    @jac Yes, you can use this CSS

    .topic [component="post/header"] {
        font-family: "Arial";
    

    Note that font-family is an example. It can be any font you desire as long as it is available on the site.

    Thanks mate, how would I know generally which fonts are available sorry?

    Can fonts be imported? Looking for a bold font for titles.

    wrote on last edited by

    @jac yes, they can. Here’s an example of how that would work

    https://www.w3docs.com/snippets/css/how-to-import-google-fonts-in-css-file.html

  • @jac yes, they can. Here’s an example of how that would work

    https://www.w3docs.com/snippets/css/how-to-import-google-fonts-in-css-file.html

    wrote on last edited by

    @phenomlab said in NodeBB customisation:

    @jac yes, they can. Here’s an example of how that would work

    https://www.w3docs.com/snippets/css/how-to-import-google-fonts-in-css-file.html

    Thanks mate, will check this out over the weekend 😁.

  • JAC JAC

    @phenomlab said in NodeBB customisation:

    @jac yes, they can. Here’s an example of how that would work

    https://www.w3docs.com/snippets/css/how-to-import-google-fonts-in-css-file.html

    Thanks mate, will check this out over the weekend 😁.

    wrote on last edited by JAC

    @jac said in NodeBB customisation:

    @phenomlab said in NodeBB customisation:

    @jac yes, they can. Here’s an example of how that would work

    https://www.w3docs.com/snippets/css/how-to-import-google-fonts-in-css-file.html

    Thanks mate, will check this out over the weekend 😁.

    👀 how would this work if I just wanted to change the title font?

  • JAC JAC

    @jac said in NodeBB customisation:

    @phenomlab said in NodeBB customisation:

    @jac yes, they can. Here’s an example of how that would work

    https://www.w3docs.com/snippets/css/how-to-import-google-fonts-in-css-file.html

    Thanks mate, will check this out over the weekend 😁.

    👀 how would this work if I just wanted to change the title font?

    wrote on last edited by

    @jac You’d need to target the element you want, and change the font being called - an example

    h1.title {
    font-family: "mygooglefont";
    }
  • @jac You’d need to target the element you want, and change the font being called - an example

    h1.title {
    font-family: "mygooglefont";
    }
    wrote on last edited by

    @phenomlab Thank you, I’ll take a look 🙂

  • JAC JAC

    @phenomlab Thank you, I’ll take a look 🙂

    wrote on last edited by

    @phenomlab without taking every idea from yourself…

    The banner effect that you have in place was it easy to do?

    This is something I wanted to do originally with photos, but the general look and feel of the wide banner effect with the font on does look really impressive.

    I’m wondering if it would look any better than what I currently have?

    Screenshot 2022-01-18 at 14-55-50 Clint Hill to join Challinor at County .png ❔

  • JAC JAC

    @phenomlab without taking every idea from yourself…

    The banner effect that you have in place was it easy to do?

    This is something I wanted to do originally with photos, but the general look and feel of the wide banner effect with the font on does look really impressive.

    I’m wondering if it would look any better than what I currently have?

    Screenshot 2022-01-18 at 14-55-50 Clint Hill to join Challinor at County .png ❔

    wrote on last edited by

    @jac Do you mean this part ?

    fe393aeb-220d-45aa-b442-07968030ca15-image.png

  • @jac Do you mean this part ?

    fe393aeb-220d-45aa-b442-07968030ca15-image.png

    wrote on last edited by

    @phenomlab said in NodeBB customisation:

    @jac Do you mean this part ?

    fe393aeb-220d-45aa-b442-07968030ca15-image.png

    Yes mate 👍

  • JAC JAC

    @phenomlab said in NodeBB customisation:

    @jac Do you mean this part ?

    fe393aeb-220d-45aa-b442-07968030ca15-image.png

    Yes mate 👍

    wrote on last edited by

    @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 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>
    
    wrote on last edited by

    @phenomlab said in NodeBB customisation:

    Easily done, but it’s not entirely “simple”

    🤔 😛


Related Topics
  • nodebb-user-level customisation : popover element

    Solved Customisation css user level plugin custom
    15
    6 Votes
    15 Posts
    5k Views
    DownPW
    No no, I said that in the sense that he told me it was simple ^^ I was able to see that this was not the case by targeting the elements he had advised me.
  • who is read NodeBB

    Customisation read post nodebb
    6
    0 Votes
    6 Posts
    3k Views
    phenomlab
    @cagatay You should ask in the NodeBB forums. Perhaps reference this post https://discuss.flarum.org/d/23066-who-read
  • Changing Background on NodeBB

    Solved Customisation background image nodebb
    4
    0 Votes
    4 Posts
    2k Views
    phenomlab
    @cagatay You’d target the body tag and use the below line of CSS background: url(/assets/customcss/backgrounds/default/default.png) no-repeat center center fixed; Obviously, you need to change the path to suit where your image is being stored. More info around the background property can be found here https://www.w3schools.com/cssref/css3_pr_background.php
  • [NODEBB] Stats

    Unsolved Customisation plugin stats script
    20
    1
    2 Votes
    20 Posts
    7k Views
    JAC
    @phenomlab said in [NODEBB] Stats: @jac or I land up fixing it I wouldn’t put it past you
  • [NodeBB] username cards

    Solved Customisation nodebb
    8
    5 Votes
    8 Posts
    4k Views
    Sampo2910
    @phenomlab Aha…nice to know. As always thank you for the reply and information.
  • How to set a signature in NodeBB?

    Solved Customisation
    4
    2 Votes
    4 Posts
    2k Views
    JAC
    @phenomlab said in How to set a signature in NodeBB?: @jac No issues at all with copying. This is set using the signature for the user you are posting as. In the case of Hostrisk, it’s set like the below [image: 7bf04183-f6e8-4d72-b0eb-c9a05c9cd24b-image.png] You can set the signature by using https://domain.com/user/theuser/edit Mamy thanks Mark, I’ll set this up later .
  • Forum customisation

    Customisation forum customise
    17
    3 Votes
    17 Posts
    7k Views
    JAC
    @jac said in Forum customisation: @phenomlab said in Forum customisation: @jac 100%. Just setting up some free time. I’m on annual leave from work offer the coming 2 weeks so hopefully will have a bit more time then. Not a problem Mark, I don’t wish for you to use all your spare time doing that, just do it when you can, no issues I know you’re busy doing other things but when you get a chance mate I’m happy for this to go ahead along with the RSS script.
  • Customising NodeBB

    Locked Customisation nodebb
    3
    0 Votes
    3 Posts
    3k Views
    phenomlab
    Closing this thread as a duplicate of https://sudonix.com/topic/12/nodebb-customisation