D
D
deYong2015-11-11 12:59:47
WordPress
deYong, 2015-11-11 12:59:47

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

3 answer(s)
V
Viktor, 2015-11-11
@deYong

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;"

0
0leg5ergeev, 2015-11-11
@0leg5ergeev

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

P
petrmish, 2019-04-02
@petrmish

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 question

Ask a Question

731 491 924 answers to any question