This is a clone for this plugin https://www.dokuwiki.org/plugin:headerfooter
including the enhanced version
http://berniceya.com/dkinfo/en/downloads/dokuwiki/headerfooter
So I have done a change to ignore sidebar file because I don want it with header and footer.