What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

How to include duplicate markup in every web page

teck@jonatec.com

Junior Member
Joined
May 22, 2013
Messages
2
Reaction score
0
HTML Coins
0
If all my web pages have the same navigation and footer markup, what is the best way of avoid hard-coding this in every page, so if it needs changing it's only changed in one place so as not to have to edit every html file?

Thanks
 
If all my web pages have the same navigation and footer markup, what is the best way of avoid hard-coding this in every page, so if it needs changing it's only changed in one place so as not to have to edit every html file?

Thanks

Do you have PHP installed? You could save the navigation in navigation.htm. Inside every page write:

<?php include 'navigation.htm'; ?>

Just edit the navigation file and all of the pages will update.
 
Do you have PHP installed?

If so, you can create a navigation.htm page and write the following on each page:

PHP:
<?php include 'navigation.htm'; ?>

You would simply edit navigation.htm for further updates.
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back