简体   繁体   中英

How to remove page link in wordpress?

every time if I add a new page, the link will come out along with a new navigation on my page, I have deleted it in the menu structure but it didn't work

here the image : https://imgur.com/a/RD7lt42

转到您的page.php文件并删除包含侧边栏的代码。

Please check Automatically add new top-level pages to this menu checkbox in your menu page if checked then uncheck it. See the link below

https://i.stack.imgur.com/hVVcD.png

It came from sidebar. Either go to widget and remove sidebar widget. or goto page.php & remove sidebar fetching code.

it's not from the sidebar, I add under my navigation code.

 <?php
  if (  has_nav_menu( 'primary' ) ) {
         wp_nav_menu(array(
        'menu' => 'Main Navigation',
        'container_id' => 'cssmenu',
        'theme_location' => 'primary',
        'walker' => new Consulting_Menu_Walker()
        )); }

thx for help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM