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 💗