To be honest I do not understand PHP just yet. But what I am trying to achieve sounds easy in my head.
Here is the code at the top of my wordpress single.php file:
<?php get_header(); ?>
I have created a separate header i.e header2.php.
I want to know what do I need to write at the top of my single.php template to call header2.php instead of header.php?
If you want to have header-2.php (and not header2.php) you have to call:
<?php get_header('2'); ?>
See this page: http://codex.wordpress.org/Function_Reference/get_header
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With