NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Question Custom Home Page
Started by thaAndrex

thaAndrex

thaAndrex

Member
Joined
08 May 2021
Last Seen
17 Sep 2024
Topics
2
Posts
4

Hi, is possible to use a custom home page on NamelessMC??

Because i made a pretty cool home page in html & css with links and i want use it as main page.
I tried creating a page that redirect to the html files but i now have 2 home buttons...



Maybe i can try creating an Nginx Reverse Proxy from /home to the page, but I would like to avoid it.

thaAndrex · 7 months ago · Last edited: 7 months ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
11 Nov 2024
Topics
41
Posts
1076

Hi,

In the StaffCP -> Configuration -> General Settings tab, you can set the "Homepage Type" to "Portal".

Then, in the directory for the template that you are using (e.g. custom/templates/DefaultRevamp), there is a file called portal.tpl in which you can add your custom HTML code.

Hope that helps!

x1
Samerton · 7 months ago
thaAndrex

thaAndrex

Member
Joined
08 May 2021
Last Seen
17 Sep 2024
Topics
2
Posts
4

Thanks, but what about CSS, Assets, ecc...?

 

thaAndrex · 7 months ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
11 Nov 2024
Topics
41
Posts
1076

You can upload these to your web host as normal, and also refer to them in the HTML within the tpl file as normal.

Samerton · 7 months ago