In this guide, we will focus on the easier and more accessible method of installing a theme in DNN. Start by downloading the latest version of the skin. You can find all available versions on GitHub.
For this method, you are required to have a DNN installation running. You can easily set one up locally on your computer with tools like nvQuickSite.
(For details check the installation guide)
Important: Existing pages won't be affected. For these, you will have to apply the skin manually (see other steps).
In this "Getting Started" guide, we will go through some easy-to-adopt steps to customize the website to our needs. We will learn how to change colors, use a different font, and implement a custom logo.
The 2shine skin relies heavily on CSS variables, which can easily be adjusted to one's preferences. The CSS variables in /theme/theme.css can be modified to customize the look and feel of your project. Since it's native CSS, you can simply change the values and instantly see the updates without the need for Sass compiling.
/theme/theme.css
Let's start at the top by changing the primary and secondary colors to new values. After making these changes, return to your website and perform a hard refresh (Ctrl + F5).
Ctrl + F5
change:
--bs-primary: #E23835;--bs-secondary: #386BB7;
--bs-primary: #E23835;
--bs-secondary: #386BB7;
to:
--bs-primary: #0060AC;--bs-secondary: #001D38;
--bs-primary: #0060AC;
--bs-secondary: #001D38;
This should turn your website blue. You can compare your results with the before-and-after images below.
Now that we know how to change colors, you might also want to use your own font on your website. Luckily, this is also possible using variables.
We'll start by changing the font for regular content (<p> elements, etc.). To make the change immediately noticeable, we'll choose a distinctive font.
<p>
For that we will take a font from Google Fonts. There you can take whatever font you'd like. In this guide we will use the Milonga font. For easy access the needed code is prepared below.
theme.css
@import url('https://fonts.googleapis.com/css2?family=Milonga&display=swap');
--theme-font
--theme-font: "Manrope", Arial;
--theme-font: "Milonga", Arial;
--bs-body-font-family-headlines
src/scss/utils/_typography.scss
In a last step we want to implement our own logo in the navigation, by replacing the images/logo.svg with your logo's .svg file.
images/logo.svg
.svg
OR..
If you don't have an .svg version of your logo, you'll need to go to controls/theme-body.ascx and update the path to your logos file type.
controls/theme-body.ascx
(The screenshot shows a combination of both solutions, but you only have to to do the one or the other)
You can take your own logo or use this file for testing.