Is it possible to hide the title for page from being displayed?

I’m using xwiki version 12.2.1. Is it possible to hide the title on the “Main” page?

E.g. at {url}/bin/view/Main, I’ve set the title to “Home” and having an empty title will make it display “Main”. I want to hide the title being shown on just this page. Is this possible? If so, how?

Thanks.

Found an answer. Set the title to be a whitespace.

A nicer solution IMO is to use a Stylesheet Skin Extension (see https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/SkinExtensionsTutorial/) and use CSS to hide the title.

Thanks. Could you help me / us by telling us how to actually do this in CSS.

I’m really bad at CSS.

Put the following in a SSX if you want to remove the whole content header:

.document-header {
    display: none;
}

If you only want to remove the title but keep the buttons, you’ll need to decide what to do with the buttons (where to position them). For example on the left (note: the CSS I’ve used is possibly bad):

.document-info {
    display: none;
}

.document-menu {
    display: flex;
}

Screenshot 2022-08-29 at 10.36.10

1 Like

As @vmassol mentioned, you put your CSS code. Still, for greater assurance and confidence, you can insepct the page title via Developer Console in a web browser and find that the id #document-title is responsible for it.

1 Like