IP.Board Apps and Hooks

Custom Head and Body 1.0.0

Submitted by Aoki, , Thread ID: 5821

Thread Closed
Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
07-07-2015, 11:41 PM
#1
This simple plugin allows you to specify additional html that will be included in the following places:
  • After the <head> tag
  • Before the </head> tag
  • After the <body> tag
  • Before the </body> tag

This is most useful for adding links to javascript and css files. It is possible to do this by editing the templates (globalTemplate, IncludeJS, IncludeCSS) but these changes need to be made after each upgrade.

I use this on my board to add some custom javascript functions and to use some google fonts by adding this just before the </head> tag:

Code:
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" rel="stylesheet" type="text/css">

Content locked
This content has been locked. Please login or register in order to unlock it.

Users browsing this thread: 1 Guest(s)