XF 2.2 Removing the board name from our homepage

Graham Smith

Active member
Our board name is well advertised in our header logo, so there's no need to show it on our homepage.

I looked on this forum and found an old post which said put this in extra.less

.p-title {
display: none;
}

However, on our forum pages, it also removed these icons
Screenshot 2021-05-05 at 16.11.27.webp

Is there another solution?
 
Does this change your google results or remove the title from google search results?

thanks

Google typically still does display and use text on a page that is visibility:hidden and/or display:none in their search results. This isn't guaranteed but the use of css options to hide text does not block that same text from inclusion in search results and SEO factoring as far as Google is concerned.
 
An old thread - and I'm not specifically addressing the issue in the OP, but just in case it helps anyone, I built a very simple addon a while back which gives more control over what appears at the home page title.


The intent was actually the opposite of the OP - to show a longer, more descriptive title on the home page, while allowing you to set the boardTitle in the options to something shorter - since this is used as a suffix on browser tabs and such.

It may still be useful for people looking for a solution - especially one that doesn't involve hiding text using CSS.
 
Less:
.p-title h1
{
    visibility: hidden;
}

Using that instead of display: none ensures the buttons remain in the same location.

I tried using this code in my extra.less, but it is also removing my thread title on the single thread page. I just wanted to remove the title from homepage.
 
Less:
[data-template="forum_list"] {
    .p-title-value {
        display: none;
    }
}

Thank you, that worked, but it was pushing the buttons from right to left, so I made a small change, and it's working great.

Code:
/* Homepage Title Remove */
[data-template="forum_list"] {
    .p-title-value {
        visibility: hidden;
    }
}
 
Thank you, that worked, but it was pushing the buttons from right to left, so I made a small change, and it's working great.
Otherwise...
Less:
[data-template="forum_list"] {
    .p-title-value {
        display: none;
    }
    .p-title-pageAction {
        margin-left: auto;
    }
}

With visibility: hidden; the element is still "readable" by search engines but maybe it's not a problem in your case.
 
Last edited:
Otherwise...
Less:
[data-template="forum_list"] {
    .p-title-value {
        display: none;
    }
    .p-title-pageAction {
        margin-left: auto;
    }
}

With visibility: hidden; the element is still "readable" by search engines but maybe it's not a problem in your case.

Yes, that works too. I am just not considering changing to any custom theme yet, as Xenforo 3 will be out soon.
 
Back
Top Bottom