I want to remove the category title
I assume you are talking about the little “archive label” that appears above the title on category/tag/taxonomy archives.
The best way to hide that would be to add some “Additional CSS” in the theme customizer.
To specifically target category archives, you could use this…
.archive.category .page-masthead .label {
display: none;
}
if I post a page and write a few words , It goes also to the header ,and I want to remove it
What’s shown in the header is actually the page “excerpt” using the_excerpt(), which is useful when you want to use the actual post_excerpt value as a summary.
There are (at least) three approaches here. You could:
1) Add a custom excerpt for the page to serve as a summary to appear in the header.
2) Use CSS to hide that area of the page…
.page-masthead .excerpt {
display: none;
}
3) Add a filter to the excerpt to return false…
add_filter('the_excerpt', '__return_false');
NOTE: This may have collateral damage to other parts of the page (e.g. meta descriptions) so please scope accordingly.