1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Edit code (source / CSS) on Site Creator
This guide explains how to customize the source code, modify the CSS, modify the HEAD or BODY part of a website made with Site Creator Infomaniak.
Prerequisites
- Go to Site Creator:
- Click here in order to access the management of your product on the Manager Infomaniak (Need help?).
- Click directly on the nameallocated to the product concerned.
- Click on Customize my site:
Add Custom Code
Once in Site Creator:
- Click on Design in the left side menu.
- Click on More parameters.
- Click on Custom code At the bottom:
- Enter HTML code, JavaScript (with its tags) script) or custom CSS (with its tags style) - read below for some examples.
- Save changes at the bottom of the page.
Metadata in HEAD & BODY
To add JavaScript code or any other code in the part HEAD or BODY the source code of your site:
- Click on Adjustments in the left side menu.
- Click on SEO & Metadata in the part Website Configuration.
- Get down to Custom code.
- Choose to add under the tabs HEAD or under BODY.
- Save the changes at the bottom of the page:
Examples of CSS customization
These examples allow you to start the advanced customization of the website pages. However, there is a risk depending on the changes made that you will no longer be able to access the editor himself, which will force you to start over from scratch.
It is strongly recommended that: never insert type beacons html
, head
or body
which could conflict with the source code of the application itselfe⚠For additional assistance contact a partner or launch a call for tenders free of charge — discover also the role of the host.
Customize the website wallpaper
To put the image of your choice (to load in the file library) at the bottom of the page and customize its display:
- See point 3 on the first image at the top of this guide.
- Insert code
<style>
to indicate that you want to change the CSS code, - then
body {
to indicate that you want to change the body of the page and the "{
" to open the space for inserting the controls, - then
background-image: url("../data/files/fond01.jpg");
with the precise path & name of the image loaded in the library without forgetting the comma point to be able to insert the following command. background-repeat: repeat;
to repeat the inserted image.background-attachment: fixed;
so that the background image remains fixed even if the visitor scrolls the page down or up to read its content.}
to close the insertion space previously opened.</style>
to indicate that the code ends here.
Space letters from all links on the site
To remove (many) the letters between them on the clickable words (links):
- See point 3 on the first image at the top of this guide.
- Insert the code (if not yet present)
<style>
to indicate that you want to change the CSS code, - then
.container div a {
to indicate that you want to modify the blocks of the page and more specifically the links ("a
") and "{
" to open the space for inserting the controls, - then
letter-spacing:1em;
by reducing the value (0.9em e.g.) without forgetting the comma point to be able to insert the next command or finish. }
to close the insertion space previously opened.</style>
to indicate that the code ends here.
Be aware of these other examples of CSS code to be inserted on your site.