Skip to main content
Louise Haines
SMART Technologies: Communities and Advocacy Manager
Asked a question 6 months ago

Can anyone help with CSS code to change colour and or name of Home button?

Where am I?

In Tribe you can ask and answer questions and share your experience with others!

PreetishTribe Team
Ḿarkḛtinḡ ḁt Tribë

@Louise Haines9  Here is the code to change the name of the Home button:

window.Tribe = {
   onReady: function(pathname) {
        var elem = document.querySelector('header > nav > div > a:nth-child(2) .mobile');
         elem.innerHTML = '<span>Feed</span>';
         elem.style10.visibility = "visible";

Please note that in the code block mentioned above, I have kept it as Feed. You can replace it with anything else.

Learn more about how you can customize your community with JavaScript here28.