A
A
Alexander Arbuzov2017-11-07 16:28:26
React
Alexander Arbuzov, 2017-11-07 16:28:26

How to hide the menu on the specified page in WP?

How to hide the top menu on a page with a given ID in wordpress (4.8)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Spirin, 2019-08-13
@mosikus

const Example = () => {
  const [isLoading, setLoading] = useState(true);

  const handleOnLoad = () => {
    setLoading(false);
  };

  return (
    <>
      {isLoading && <Preloader />}
      <iframe 
        title="iframe"
        src="..."
        onLoad={handleOnLoad}
      />
    </>
  );
};

D
Denis Yanchevsky, 2017-11-07
@arbuzzz

For example, using the is_page conditional tag

<?php if(!is_page(48)) {
    wp_nav_menu();
} ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question