Remove Header and style.css from Specific Post template


I want to add some custom code so I’ve created a custom post file with the following content.

 * Template Name: Custom App
 * Template Post Type: post, page, product

 <?php get_header(); ?>
 App Code here...

I want to remove the header element <header id="header" class="main-header"> and style.css from the custom post using function.php file.

I want to keep <?php get_header(); ?> because of yoast SEO and some analytics scripts.

I don’t want to hide the main-header using CSS display:none property

, Kumar 4 years 2020-06-02T01:11:05-05:00 0 Answers 95 views 0

Leave an answer