Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Disable header for a specific page in wordpress without wasting too much if your time.
The question is published on by Tutorial Guruji team.
The question is published on by Tutorial Guruji team.
how can i disable header for this specific page. Is there any php function that disables the header for a specific page? In wordpress
Here is the link: https://techmax.ro/elementor-14408/
Answer
You can hide by CSS and using WP is_page
function. check the below code.
function hide_header_on_some_pages(){ if( is_page( 'yourpagename' ) ){ ?> <style type="text/css"> .site-header { display: none; } </style> <?php } } add_action( 'wp_head', 'hide_header_on_some_pages', 10, 1 );
We are here to answer your question about Disable header for a specific page in wordpress - If you find the proper solution, please don't forgot to share this with your team members.