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💗

  • nodebb error logs

    Bugs
    6
    4 Votes
    6 Posts
    168 Views

    I just wanted to ask because I don’t have much knowledge about the new installation.
    Thank you for the explanatory answer.

  • 1 Votes
    10 Posts
    291 Views

    @Panda because there is no match for the DNS entry specified. The receiving web server parses the headers looking for a destination hostname to match, and anything the web server is unable to resolve will be sent back to the root.

  • SEO and Nodebb

    Performance
    2
    2 Votes
    2 Posts
    137 Views

    @Panda It’s the best it’s ever been to be honest. I’ve used a myriad of systems in the past - most notably, WordPress, and then Flarum (which for SEO, was absolutely dire - they never even had SEO out of the box, and relied on a third party extension to do it), and NodeBB easily fares the best - see below example

    https://www.google.com/search?q=site%3Asudonix.org&oq=site%3Asudonix.org&aqs=chrome..69i57j69i60j69i58j69i60l2.9039j0j3&sourceid=chrome&ie=UTF-8#ip=1

    However, this was not without significant effort on my part once I’d migrated from COM to ORG - see below posts

    https://community.nodebb.org/topic/17286/google-crawl-error-after-site-migration/17?_=1688461250365

    And also

    https://support.google.com/webmasters/thread/221027803?hl=en&msgid=221464164

    It was painful to say the least - as it turns out, there was an issue in NodeBB core that prevented spiders from getting to content, which as far as I understand, is now fixed. SEO in itself is a dark art - a black box that nobody really fully understands, and it’s essentially going to boil down to one thing - “content”.

    Google’s algorithm for indexing has also changed dramatically over the years. They only now crawl content that has value, so if it believes that your site has nothing to offer, it will simply skip it.

  • 2 Votes
    2 Posts
    146 Views

    @cagatay this relates to a change the css classes used for the brand header meaning it will now float to the left instead of right.

    If you’d like to retain the original behavior, you can add this css class

    [data-widget-area="brand-header"] { justify-content: end; display: flex; }

    Further information here

    https://community.nodebb.org/topic/17090/manual-build-a-custom-header-in-harmony/19?_=1684069325296

  • 2 Votes
    19 Posts
    556 Views

    @phenomlab Work now 😉

  • 0 Votes
    4 Posts
    518 Views

    @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

  • 2 Votes
    7 Posts
    748 Views

    @phenomlab said in NodeBB changing color of the text:

    @marusaky This ought to to it

    a.permalink, a.permalink:active, a.permalink:focus, a.permalink:hover { color: #ffffff; }

    works great, thanks a lot

  • NodeBB Footer

    Solved Customisation
    10
    1 Votes
    10 Posts
    966 Views

    @phenomlab said in NodeBB Footer:

    @jac and you. Hope all is well and you recover quickly

    Thanks pal 😁🤝🏻