Hi,
I’ve created a custom header, basically a simple header to look nice on mobile version of my site. I named it as header-mobile.php. I’m checking the condition on index.php like this -
If condition true then
get_header('mobile');
else
get_header();
This doesn’t seem to work. I found inc/custom-header.php but not sure how to use this logic in there?
You can use that, did you check the if condition like this? Function Reference/wp is mobile « WordPress Codex also in the header-mobile.php make sure you copy the content from header.php before making edits, because few lines in header.php is must.
What issue you’re facing when using this technique?