Hi Team
New client here
is it true that
"looks like I need to change header contents of every html manually?"
so if we have 30 html files, in order to make all header contents consistent, we need to edit 30 files?~~~
2 replies · opened Mar 1, 2024
Hi Team
New client here
is it true that
"looks like I need to change header contents of every html manually?"
so if we have 30 html files, in order to make all header contents consistent, we need to edit 30 files?~~~
if that is the case, which seems very old fashioned? please kindly provide a better solution
Thank you!
Hello,
Since Canvas is a Static HTML/CSS Template, you will need to change the Header/Menu Codes manually. It is possible to have a centralized file for the Menu, but you will need to use PHP instead. Please use the following steps:
Change the .html Extension of your files to .php .
Create a File named header.php and add the Header Codes to it.
Then, include this file in the Header Area. Example:
[ch_pre type="php"]<?php include('header.php'); ?>[/ch_pre]
That's it. Now all your Pages will have the same Header Codes which can be changed only in one File. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard