Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTML Include

Featured Replies

I have taken over the management of an existing website for a client and I am trying to include one file (containing all the META tags) inside a html file and can't seem to get it to work. I have tried using javascript and <!--#include FILE="filename.html" --> but nothing works. The whole website is built in html and I don't really want the task of changing it to PHP as that means changing all the links on all pages. (Their previous web developer created one page as a template with all the navigation, etc in and used that so now, the 144 page website has the navigation coded on each individual page.)

 

So can anyone recommend an easy way to do this?

 

Thanks

Only way that I would say is possible & fool proof is iframes. These are bad though and it would be so much better to just convert the pages over to .php

 

Then you just 301 redirect all the .html to .php versions, no need to change all the links.

You could always put the following in a .htaccess file

AddType application/x-httpd-php .php .htm .html
AddHandler application/x-http-php5 .php .htm .html

to get the server to parse those extensions as php

 

Assuming you're using apache.

  • Author

You could always put the following in a .htaccess file

AddType application/x-httpd-php .php .htm .html
AddHandler application/x-http-php5 .php .htm .html

to get the server to parse those extensions as php

 

Assuming you're using apache.

Thanks, that's what I ended up doing and it's working great.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.