Skip to content

background color of the footer area

Solved Customisation
  • How can I change the background color of the footer area?

    we have forum-stats widget, social media links and “powered by NodeBB” label at the bottom as “global footer widgets”. We would like to change the color of this background (whole this footer area from right to left)

    Screen Shot 2022-02-28 at 7.06.17 PM.png

  • @phenomlab For your footers, I changed to

    div class="row text-center adjust">
    

    For the “Powered by…” I changed this to

    <div class="row pad-10 text-center adjust">
    

    And finally, added a new class

    .row.text-center.adjust {
        margin-left: -30px;
        margin-right: -30px;
    }
    

    At the top of your custom CSS

    24169304-5dc7-47ca-b143-26e9d9ef2fd8-image.png

    Reload your page and have a look 🙂

    f3154da1-4da3-447a-a169-e57c82f022cb-image.png

    The class of row exists already (part of Bootstrap) and .row.text-center.adjust is explicit and will only apply to that code

  • @crazycells from what I currently see, this is a custom HTML widget added directly below the forum-stats widget ?

    7e12893c-e0e4-404e-b3b5-cfaee242d0c1-image.png

    As this appears outside of the row element from the stats widget, it won’t automatically inherit the space you desire. The way to fix this would typically be with classes and CSS. Can you provide the code you’ve used for this ?

    Thanks

  • Or just play with transparent color and font-color maybe :

    ef0dc066-8d1a-4201-9819-1347f343a031-image.png

    but @phenomlab is always right 😉

  • @phenomlab thanks. I need all footer region (from left side to right side) to be the same color, the current form of the site is just experiments 😄

    Do you think it is possible to easily add a “custom global footer” to the nodebb? I could move the links there… (I am OK with leaving the forum-stats widget outside of this custom footer region)

    Here is the code I am using currently:

    //footer color modifications start
    .forum-stats {
        .row {
        background-color: #085EAC;
        }
    
        h2 {
            color: #eceff1;
        
            small {
            color: #eceff1;
            }
            
        }
    }
    
    
    [data-widget-area="footer"] {    
        .text-center {
            background-color: #085EAC;
        
            a {
                color: #eceff1;
            }        
        }
    }
    //footer color modifications end
    

    This is what I am trying to achieve:

    Screen Shot 2022-03-01 at 11.40.59 AM.png

  • @crazycells Can you provide me access to your site (details over PM obviously) so I can look at this ? I have an idea as to how this should work, but would like to see how you have it working now.

  • @phenomlab For your footers, I changed to

    div class="row text-center adjust">
    

    For the “Powered by…” I changed this to

    <div class="row pad-10 text-center adjust">
    

    And finally, added a new class

    .row.text-center.adjust {
        margin-left: -30px;
        margin-right: -30px;
    }
    

    At the top of your custom CSS

    24169304-5dc7-47ca-b143-26e9d9ef2fd8-image.png

    Reload your page and have a look 🙂

    f3154da1-4da3-447a-a169-e57c82f022cb-image.png

    The class of row exists already (part of Bootstrap) and .row.text-center.adjust is explicit and will only apply to that code

  • phenomlabundefined phenomlab has marked this topic as solved on
  • @phenomlab thank you very much 🙂


Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

  • Fixed background to nodebb forum

    Solved Configure
    25
    4 Votes
    25 Posts
    1k Views

    @Panda said in Fixed background to nodebb forum:

    Chatgpt told me the ::before method.

    Go figure 😛

  • Smart Widgets

    Solved Configure
    9
    3 Votes
    9 Posts
    312 Views

    @Panda said in Smart Widgets:

    So why is that, or conversely why would the function to expose username ever be required, as it seems app.user is already an available global object?

    It is, yes, but not if you are using it outside of a widget. The function I wrote is also historical and comes from the 2.x train 🙂

  • 2 Votes
    2 Posts
    120 Views

    @dave1904 that’s a really good point actually. I know it was there previously on Persona, but you’re right - no such function exists on harmony.

    However, putting something in place to mimick the behaviour of Persona won’t be hard from the js standpoint, although I wonder if perhaps we should ask the NodeBB developers is this feature was overlooked?

  • Footer bar add center text

    Solved Customisation
    41
    8 Votes
    41 Posts
    3k Views

    @phenomlab said in Footer bar add center text:

    div#console-nav-tab

    Ah ok test with bottom: 0px !important; idem

  • NodeBB Theme/Skin Switcher

    Solved Customisation
    38
    7 Votes
    38 Posts
    2k Views

    @Teemberland great spot ! You should create a PR for that so they can include it in the official repository.

    Just be aware that any subsequent releases will overwrite your fix without the PR.

  • Rotating homepage icons, gifs?

    Solved Configure
    2
    3 Votes
    2 Posts
    194 Views

    @eveh It’s not a GIF, no. It’s actually a webp file so made much smaller, and uses keyframes to control the rotation on hover. You can easily make your own though 🙂

    The CSS for that is as below

    @keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } }

    Your milage may vary on the CSS below, as it’s custom for Sudonix, but this is the class that is used to control the rotate

    .header .forum-logo, img.forum-logo.head { max-height: 50px; width: auto; height: 30px; margin-top: 9px; max-width: 150px; min-width: 32px; display: inline-block; animation-name: rotate180, rotate0; animation-duration: 1000ms; animation-delay: 0s, 1000ms; animation-iteration-count: 1; animation-timing-function: linear; transition: transform 1000ms ease-in-out; }
  • 9 Votes
    32 Posts
    2k Views

    @DownPW said in Bottom footer navbar button extend:

    Oh my god, it’s beautiful mark

    I liked this design so much, I’ve implemented it here. I intend to do a lot more with the footer in due course, so hiding it makes a lot of sense. Thanks @DownPW for the idea and initial concept ♥

  • 1 Votes
    6 Posts
    975 Views

    @jac said in [NodeBB] custom Gravatar image not showing:

    @phenomlab said in [NodeBB] custom Gravatar image not showing:

    @jac are you using Custom ?

    Sure am mate 👍🏻

    Confirmed Fixed