Navigation

3 replies · opened Apr 13, 2021

SsilkysackApr 13, 2021

Hello, I am looking for a solution to make the main navigation work so that I can edit it once and the changes apply to all the pages in the theme. Do you know of a way to make this happen? Currently a site having 50 pages is alot of tedious work to make a simple navigation change. Thanks!

SSemicolon WebSTAFFApr 13, 2021

Hello,

This is Definitely Possible but you will need to use PHP instead by having a Centralized File for the Menu. Please use the following steps:

  1. Change the .html Extension of your files to .php .

  2. Create a File named header.php and add the Header Codes to it.

  3. 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.

SsilkysackApr 13, 2021

So all the html pages just need the extension changed to .php? will this effect performance at all?
Thanks!

SSemicolon WebSTAFFApr 15, 2021

Hello,

Apologies for the Delay in replying.

Yes, just changing the .html page extensions to .php will work fine. This will not have any negligible impact on performance.

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