jAC Family History

Home > Post > Post Title

How to customise a theme

Here's how to customise the appearance of your website.

Customising CSS

To adjust the CSS of your website change the theme. Let's see how themes work. The default theme is defined in the system settings. A different theme can be defined in the page settings at the top of each page, for example Theme: custom.

Here's an example file system/themes/custom.css:

.page {
    background-color: #fc4;
    color: #fff;
    text-align: center; 
}

Customising JavaScript

To adjust your website even more you can use JavaScript. This allows you to create dynamic features for websites. You can save JavaScript into a file which has a similar name as the CSS file. Then it will be automatically included.

Here's an example file system/themes/custom.js:

var ready = function() {
    console.log("Hello world");
    // Add more JavaScript code here
}
window.addEventListener("DOMContentLoaded", ready, false);

Customising images and files

The system/themes folder contains all theme files. You can store your images and font files here, which are used in themes. Each website has a small icon, sometimes called a favicon. The web browser displays this icon for example in the address bar.

Do you have questions? Get help.

TOP

System Information Page: /myhelp/en/how-to-customise-a-theme
Filename: content/myhelp/1-en/how-to-customise-a-theme.md
ParentFolder: how-to-customise-a-theme
Parent: myhelp/en/how-to-customise-a-theme
ParentTop: myhelp
Theme: philly
Layout: default
LayoutLocation: ../yellow/system/layouts/morton/
SystemLocation: ../yellow/system/
SystemPath: /home/jacmgr/jhinline.com/sites/yellow/system/

testing link colors testing link colors

CSS

The Language for Styling Web Pages

LEARN CSS CSS REFERENCE
body { background-color: #d0e4fe; } h1 { color: orange; text-align: center; p { font-family: "Times New Roman"; font-size: 20px; }

  body {
    background-color: #d0e4fe;
  }
  h1 {
    color: orange;
    text-align: center;
  p {
    font-family: "Times New Roman";
    font-size: 20px;
  }
  
Try it Yourself

JavaScript

The Language for Programming Web Pages

LEARN JS JS REFERENCE


 Click the button to change the color of this paragraph
   
   function myFunction() {
	var x;
	x = document.getElementById("demo");
	x.style.fontSize = "25px";
	x.style.color = "red"; 
}
Try it Yourself

Theme Colors

  • l5 w3-theme-l5
  • THIS IS THE TEXT
  • THIS IS THE TEXT
  • THIS IS THE TEXT
  • l1 w3-theme-l1
  • w3-theme-d1
  • THIS IS THE TEXT
  • THIS IS THE TEXT
  • THIS IS THE TEXT
  • w3-theme-d5