Current Theme Version: 2.0.2 - Updated November 2023
Treelink is a responsive Linktree-like theme. Built with HTML5, CSS3 & JavaScript. This is a Bootstrap 5 mobile theme for your links & social media apps.
This theme is ideal for someone to host their own website. This is an easy, private and secure way to showcase all their links WITHOUT signing up for services like Linktree, having ads, etc.
To get started, all you need to do is to copy the files to your main domain or subdomain hosting directory folder.
This theme includes 4 different main HTML page presets:
These correlate to the round button template, the square button template, the video background playback template & the background gradient template.
Whichever you end up choosing as your preferred style, make sure to simply rename it to "index.html" before uploading it to your domain folder or hosting directory folder.
This theme has been designed to be completely modular and very easy to customize. Here's the folder structure:
Root └─ assets │ └─ css/ │ └── All css files │ └─ colors │ └── All color files │ └─ fonts/ │ └── All icon files │ └─ font-family │ └── All font files │ └─ js/ │ └── All javascript files │ └─ images/ │ └── All images & video files │ └─ php/ │ └── Contact.php file └─ html └─ All html files
<body> <!-- 1. Start: Loader/Spinner --> <div id="preloader"> </div> <!-- 1. End: Loader/Spinner --> <!-- 2. Start: Top Navbar --> <nav class="navbar navbar-expand-lg custom-nav"> </nav> <!-- 2. End: Top Navbar --> <!-- 3. Start: Header Section --> <div class="container" style="max-width: 680px" id="header-section"> </div> <!-- 3. End: Header Section --> <!-- 4. Start: Main Buttons Section --> <div class="container" style="max-width: 680px" id="main-buttons"> </div> <!-- 4. End: Main Buttons Section --> <!-- 5. Start: Modal Form Contents --> <div class="modal fade" id="exampleModal"> </div> <!-- 5. End: Modal Form Contents --> <!-- 6. Start: Footer Section --> <div class="container" id="footer"> </div> <!-- 6. End: Footer Section --> <!-- Back To Top --> <a href="#" class="back_top"> </a> <!-- All JavaScripts --> <script type="text/javascript"> </script> </body>
File Name | Description | Location |
---|---|---|
bootstrap.min.css
|
Treelink uses bootstrap v5.1.3. The core bootstrap file is being used in all the pages. | /assets/css/bootstrap.min.css/ |
style.css
|
This file is containing all common styles for all the pages. | /assets/css/style.css/ |
Color folder. All color files
|
This folder contains 10 colour presets templates. Including a dark mode, a video background mode & a gradient background mode. | /assets/css/colors/ |
Version 2.0.0 introduces a color switch toggle, this can be set between any of the 10 colors presets included with this theme. By default, the switch is configured to change from light mode to dark mode.
<link id="style1" rel="stylesheet" type="text/css" href="css/colors/light-mode.css" />
<link id="style2" rel="stylesheet" type="text/css" href="css/colors/dark-mode.css" disabled="disabled" />
It does so by switching from "style1" to "style2". Make sure you edit all the "styles" in the entire script, located in line #308 of the round & square index files.
Version 1.0.4 introduced a new index file called: "index_video.html". This preset has a background video player integrated.
Because of the video player, the index_video.html preset lacks a toggle switch since the CSS has to be unique in order for the text to be legible while any type of video (color/brightness) is playing in the background.
The default stylesheet in the "index_video.html" preset is located in line #41, and looks like this:
<linkrel="stylesheet" type="text/css" href="css/colors/video-mode.css">
<video autoplay loop muted playsinline class="bg-video">
The parameters of the background video playback are located in line #58, and are specified below:
Version 1.0.4 introduced a new background CSS color file, called "gradient-bg.css". To customize the colors of the gradient, open the file and edit the color values in line #14:
background: linear-gradient(to left, #338e77, #ff10b7);
You can also edit the direction of the animation, in the example above the animation moves to the left side.
File Name | Description | Location |
---|---|---|
custom.js
|
This is the main JavaScript file. It contains the custom JS code needed for all features. | /assets/js/custom.js/ |
contact.js
|
This is the contact JavaScript file. It contains the JS code needed for the form to actually send the email. | /assets/js/contact.js/ |
This file houses all the main scripts, back to top, preloader, sticky menu, etc. This file can be edited.
This file houses the main javascript code for the contact form to actually send the email. This file can be edited.
File Name | Description | Location |
---|---|---|
contact.php
|
This is a php file. It contains the php code needed for the contact form to work. This includes the email verification system. To customize the email destination, read below: | /assets/php/contact.php/ |
To add your own destination email in the contact form, simply edit the contact.php file, inside the PHP folder. This can be done in line #47
//$address = "example@example.net";
$address = "support@jperez.ca";
Nothing else needs to be edited. Any other edits could potentially break the contact form.
File Name | Description | Location |
---|---|---|
Image Folder
|
Version 1.0.4 added the ability to have a background video on your site. Make sure the video is located in the images folder. | /assests/images/ |
File Name | Description | Location |
---|---|---|
Image Folder
|
Version 1.0.4 added the ability to have a background video on your site. Make sure the video is located in the images folder. | /assests/images/ |
File Name | Description | Location |
---|---|---|
Font-family Folder
|
Version 2.0.0 adds 5 different font families, and let's you easily switch between them. | /assests/fonts/font-family/ |
To switch between any of the 5 font-families included, simply edit the style.css file, inside the css folder.
@import = "/assets/fonts/font-family/font-1.css";
Line #11 contains the import link. Here you can change it to any other of the fonts included, IE: font-1.css, font-2.css, font-3.css, etc.
Version 2.0.2 adds and brand new icon library, the Bootstrap Icons v1.11.1. These are free and open source icons, so it's easy to browse for the specific icons and get the bi code. Check the icon cheatsheet here:
Once you find the bi code of the icon that you are looking for, you can easily edit any of the main buttons or social media buttons. Simply replace the mdi code.
This is the bi code for the YouTube logo:
<i class="bi bi-youtube"</i>
Looks like this:
Let's replace it with the Twitter / X logo.
<i class="bi bi-twitter"</i>
Now looks like this:
Here's a brief description of some of the changes: