How to have different headers.php files based on the display page

Question

With the get_header() function, if I have an header.php and an header-news.php, can I use the second file only when a single post of the nesw category is displayed? I have a one page wordpress website where the only page will be the news category archive and the sigle news categorized posts that are using the single.php file template. The menu links are anchor tags so if the user navigate away from home by clicking on a news, I need that the menu can redirect it back to the home where all the contents are published. Also I need some suggestion on how to paginate my category archive. Thanks in advance.

0
, sialfa 12 months 2020-05-05T09:12:43-05:00 0 Answers 80 views 0

Leave an answer

Browse
Browse