php - How to hide header on specific page in wordpress -
i trying hide header on specific page in wordpress. know can using css.
the page id displayed in dashboard is:
wp-admin/post.php?post=31221&action=edit
the page has header without id or class (not sure built it). can hide header with:
header {display: none;}
i can't seem hide header on specific page. have tried:
.page-id-31221 header {display:none;}
.pageid-31221 header {display:none;}
i have tried same # , postid etc etc. there way hide header on page?
failing there way can hide header after has been called in template? have created custom template page im not sure of php use hide it. if remove <?php get_header();?>
template whole page disapears.
the website here: website
you have created template specific page.
in case can use jquery hide header. add end (or start) of page template.
<script>jquery('header').hide();</script>
you want wrap inside jquery( document ).ready(function() {
ensure page loaded before script run. maybe add in defer attribute too.
Comments
Post a Comment