Viewing 14 replies - 1 through 14 (of 14 total)
  • Do you have the parent/child page hierarchy set up correctly?

    See here for a tutorial. https://www.wpbeginner.com/beginners-guide/how-to-create-a-child-page-in-wordpress/

    Thread Starter snippet24

    (@snippet24)

    I’m not using WordPress’s built-in menu, instead I set up a bootstrap menu. Said that how could I set up it incorrectly? Checked that both pages have “parent page” as “Quienes Somos”. They do have the prefix in “all pages” and it was working correctly before the change in the permalink, if it were incorrectly set up shouldn’t not work from the beginning?

    • This reply was modified 5 years, 4 months ago by snippet24.
    • This reply was modified 5 years, 4 months ago by snippet24.

    If you are using Bootstrap with a Walker class, then it still uses the WordPress menu system.

    The Walker class just takes the WordPress menu and formats it correctly for Bootstrap.

    Have a look at the two images in this link.

    Is your setup like this?

    https://drive.google.com/open?id=1EywuOW_2Vk5MwLFrVmogFjdavr1Jtj7M

    Thread Starter snippet24

    (@snippet24)

    I have nav-walker but I don’t call the menu in the header template, even if I access to it from inside it is disabled

    View post on imgur.com


    you can see also it doesn’t match at all the actual menu in the website.
    The top file the 18.36.54 one looks similar except for the insecure http.
    btw good idea using google drive for the screenshots.. Will use it in the future ??

    • This reply was modified 5 years, 4 months ago by snippet24.
    • This reply was modified 5 years, 4 months ago by snippet24.

    You don’t have the navigation in the supplied link set up as parent/children.

    You have them all set up as ‘parent’ menu items.

    Try dragging one of the menu items to the right (as shown in my example).

    Thread Starter snippet24

    (@snippet24)

    Though it shouldn’t matter I have done it https://imgur.com/Inm67eO and the problem persists :/

    • This reply was modified 5 years, 4 months ago by snippet24.

    Are you calling the right menu in your Walker code?

    Here is my sample:

    <?php
    wp_nav_menu([
    ‘menu’ => ‘top’,
    ‘theme_location’ => ‘top’,
    ‘container’ => ‘div’,
    ‘container_id’ => ‘bs4navbar’,
    ‘container_class’ => ‘collapse navbar-collapse’,
    ‘menu_id’ => false,
    ‘menu_class’ => ‘navbar-nav mr-auto’,
    ‘depth’ => 2,
    ‘fallback_cb’ => ‘bs4navwalker::fallback’,
    ‘walker’ => new bs4navwalker()
    ]);
    ?>

    Note that the menu and theme_location entries match the menu slug from the WordPress menu.

    Thread Starter snippet24

    (@snippet24)

    Thats my point: I’m not calling any nav walker menu at all in the header. Its only manual link and it worked before the permalink change

    • This reply was modified 5 years, 4 months ago by snippet24.
    • This reply was modified 5 years, 4 months ago by snippet24.
    • This reply was modified 5 years, 4 months ago by snippet24.

    I removed the Walker class from my menu. Here is an excerpt of a dropdown.

          <li class="nav-item dropdown">
           <a href="#">
              Dropdown link
            </a>
            <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
              <a href="/parent-1/child-1">Parent 1 - Child 1</a>
              <a href="/parent-1/child-2">Parent 1 - Child 2</a>
            </div>
          </li>
    

    Do you have the parent menu item in the link href?

    • This reply was modified 5 years, 4 months ago by majaid.
    • This reply was modified 5 years, 4 months ago by majaid.
    Thread Starter snippet24

    (@snippet24)

    Thread Starter snippet24

    (@snippet24)

    For the time being i just set those pages to not have a parent page. Now I realized also pages with pagination have issues example https://www.otzerling.com/las-seis-parama/3/ now I have to remove all the pagination in pages?

    Thread Starter snippet24

    (@snippet24)

    @majaid can you replicate the issue in your setup? if so I bet is a wordpress bug…

    I have not found a way to reliably have grandchildren in the NAVBAR of Bootstrap. I have seen it done different ways but you have to add jQuery or JavaScript. It doesn’t always work well on mobile.

    Thread Starter snippet24

    (@snippet24)

    Is not just the menu.. every image url is not displayed. Example: this returns error 404:
    https://www.otzerling.com/marpa/04_mar-pa-chos-kyi-blo-gros/
    Whats going on??

    Edit: So after changing the permalink structure to postname only : every page, pagination or image resource with the pattern previously pointed is not redirected properly and shows a 404 error redirecting to the homepage and things work properly before changing the permalink structure.

    • This reply was modified 5 years, 4 months ago by snippet24.
    • This reply was modified 5 years, 4 months ago by snippet24.
    • This reply was modified 5 years, 4 months ago by snippet24.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Changinmg permalink structure to postname only problems’ is closed to new replies.