Y
Y
yashunova2017-10-19 12:26:40
WordPress
yashunova, 2017-10-19 12:26:40

How to remove menu from articles?

It is necessary to remove the menu from the main menu and from the articles (do not hide it, but remove it, or hide it, but so that the links are not active there), while ensuring that the menu is active on categories and tags. Extra theme. Site turako.ru

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
one_day, 2017-10-19
@yashunova

check for hom and single

if( !is_home() || !is_single() ){
   // код меню
}

A
Anton, 2017-10-19
@Eridani

Look for a function that gives the ID of the current page, category, or whatever you have, and the condition is to disable the display of the menu on the pages you need.

A
Artem Abramovich, 2017-10-19
@artikus

Well, you can make a static page from the main page and display what you need as a builder, but on articles it’s more difficult. In Extra there is such a feature as Layouts, try to use them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question