Site icon Hip-Hop Website Design and Development

Forestall header and footer from loading on particular pages with template or plugin

I’m engaged on a shopper’s website that has just a few pages which can be embedded right into a cell app by means of WebView. The purpose is to stop the header and footer from exhibiting up on these sure pages. I am unable to take away the get_header() perform as a result of I nonetheless want the styling and Javascript within the <head> factor. I simply don’t desire the precise <header> factor to look. At the moment my answer for this downside is a template that provides a CSS show: none snippet on the <header>, however I would like to save lots of assets by stopping the header supply from even loading (by means of PHP). I perceive that I can edit the theme recordsdata and simply add a conditional to the header.php file. Nevertheless, this concern has provide you with a number of shoppers and due to this fact I want a means that may carry over to a number of completely different websites with the identical theme, whether or not that is by means of a template or a plugin.