# How to rewrite head to inject JS and or Css - Php

**URL:** <https://forum.kirupa.com/t/how-to-rewrite-head-to-inject-js-and-or-css-php/324763>\
**Category:** programming\
**Created:** [September 7, 2011, 2:34pm UTC](https://forum.kirupa.com/t/how-to-rewrite-head-to-inject-js-and-or-css-php/324763 "2011-09-07T14:34:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [September 7, 2011, 2:34pm UTC](https://forum.kirupa.com/t/how-to-rewrite-head-to-inject-js-and-or-css-php/324763/1 "2011-09-07T14:34:54Z")

</div>

Hi there,  
I would like to know if there is a way to dynamically rewrite part of the document eg. HEAD in order to inject my js and or css please.

Thanks for any help,

Regards,

Jerome
