Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-auto-insert.php on line 88

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-auto-insert.php on line 90

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-date-query.php on line 516

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-date-query.php on line 516
Adding references to the page head: the easy way – Dave Cavins
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-theme-json.php on line 2897

Adding references to the page head: the easy way


Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block.php on line 295

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/un5fou4acbzn/public_html/davecavins.com/wp-includes/class-wp-block-type-registry.php on line 168

To add custom styles or functionality to a SharePoint page often requires including JavaScript or CSS files that need to be referenced within the <head> tag. Instead of adding these items to the masterpage and thus every page on the whole site it is better to just add them on only the pages that need them.

Many people use a hidden content editor webpart for this purpose but there is a second option. On each page layout there is a Content placeholder called “AdditionalPageHead”.

<asp:ContentPlaceHolder id="AdditionalPageHead" runat="server">

</asp:ContentPlaceHolder>

Anything placed inside this placehodler will be added to the head of the rendered page.

You can also create your own custom placeholders in the masterpage and page layout to allow you to add items to any part of the masterpage. For instance I have created a custom placeholder to insert webparts in the footer area of the masterpage.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top