Answer the question
In order to leave comments, you need to log in
How to remove the Header and Footer of a site in a WordPress theme?
Hello!
There is a problem, I created a page using Visual Composer. But on this page there is a menu that belongs to the WordPress theme, how can I remove it? I want to display only what I created on Composer.
Screen https://yadi.sk/i/67O-BnG4kNt5a
Please tell me
Answer the question
In order to leave comments, you need to log in
If at all in a simple way.
1. in the source of the page we are looking for something like
2. we make sure that this is exactly the block that we want to remove
3. we prescribe it either in styles, or inline, if acceptable, the style "display: none;"
Don't call header and footer. Although disabling the first will lead to inoperability. See for yourself which files cause unwanted parts of the page
Perhaps a crutch, but I needed to hide on a specific page and purely visually. I used such a design in the page itself. The CSS classes themselves may be different, see for yourself.
<style type="text/css">
.top__container {display:none;}
.header__container {display:none;}
.pt-sticky-menu__container {display:none;}
.footer {display:none;}
</style>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question