Skip to main content

Creating Master Page for HTML Websites

In this blog, you will learn how to create master page for Html/Static Sites, We can create master page using PHP.

Step1: Change the Name of your file extension. index.html(all files extension)  into index.php




Step2: Create header.inc.php and footer.inc.php files.




Step3: Add header elements and navigation bar into header.inc.php and  Add footer files into footer.inc.php
(Whatever you want to show in all pages(masterfile))




Step4: Remove the header and navbar, footer elements inthe index file and put the 

<?php include_once 'includes/header.inc.php';?> - header section
<?php include_once 'includes/footer.inc.php';?> - footer section








Step5: Now you load the index.php file, Finally Website master page created






Comments

Popular posts from this blog

Sharepoint 2013/2016 Theme Change/ SharePoint Branding

Change the look of your SharePoint site You can easily customize the look of your SharePoint site. If you are using SharePoint 2013/2016 here is the option to brand your site quickly. You can change the color, background, or fonts of your SharePoint site using themes Step1:  C lick  Settings, and click Site Settings Step2:  Under the  Look and Feel  heading, click  Change the look . Step3:   Choose another look from among the choices. Don’t worry if you don’t like the color or the image exactly, you can change that in the next step. Step4: You can change the background image, Colors, Site layout, Fonts in the left Side bar To add or change the background image , click  Change  and upload an image of your own To change the color scheme, click the arrow next to Colors and select another color scheme. To change the layout, click the arrow next to  Site layout  and select another layout, ...

Material UI Tiles Display Template - sharepoint 2013

Search Results Webpart modern Material UI styled Tiles. you can show the sharepoint list to modern Tiles. Adding Managed property Mapping Add the search columns to managed property. <mso:ManagedPropertyMapping msdt:dt="string">&quot;quarter&quot;:&quot;RefinableString32&quot;,&quot;Employee Name&quot;:&quot;EmpNameOWSTEXT&quot;,&quot;Service Year&quot;:&quot;ServiceYearsOWSNMBR&quot;,&#39;Picture URL&#39;{Picture URL}:&#39;PublishingImage;PictureURL;PictureThumbnailURL&#39;,&#39;Link URL&#39;{Link URL}:&#39;Path&#39;,&quot;Title&quot;:&quot;Title&quot;,&quot;EventDate&quot;:&quot;EventDateOWSDATE&quot;,&quot;Category&quot;:&quot;CategoryOWSCHCS&quot;,&quot;Path&quot;:&quot;Path&quot;,'PictureHeight':'PictureHeight','PictureWidth':'PictureWidth','ImageDateCreated':'ImageDateCrea...