I am calling the header on a custom template page with get_header(); but the header loads without the style.css breaking the site. I noticed that if I place the header on top of some code, the style sheet loads just fine, for example:
<?php
/*
Template Name: Sample Template
*/
get_header();
//some code here
I need to load the header below some code since I am using a cookie and as of my knowledge, cookies should be generated before any HTML.