• Hello,
    I’ve read about this a bunch with a few different proposed solutions, but they either don’t apply to this theme or don’t work.

    I’m using the Trans-Travel v1.0.2 theme and can’t figure out how to remove the “Auto Draft” and default “Home” navigation links.
    https://www.meditationsimpleguide.com
    I’ve tried placing both as children of other pages, but that doesn’t work either.

    Also, how do you re-order the existing pages without using a custom menu?

    I’m familiar with editing the CSS and PHP, but can’t seem to find were to do this. There must be a way, right?
    Thanks,
    -EC

Viewing 3 replies - 1 through 3 (of 3 total)
  • jack randall

    (@theotherlebowski)

    if you go into your theme’s files and find main-nav.php and look for this code:

    <!-- BEGIN MAIN-NAV.PHP -->
    <ul>
    <!-- To show "current" on the home page -->
    <li<?php if (is_home()) { echo " id=\"current\""; } ?>>
    <a href="<?php bloginfo('url'); ?>" title="<?php _e('Home Page'); ?>"><span><?php _e('Home'); ?></span></a></li>

    change it to this:

    <!-- BEGIN MAIN-NAV.PHP -->
    <ul>
    <!-- To show "current" on the home page
    <li<?php if (is_home()) { echo " id=\"current\""; } ?>>
    <a href="<?php bloginfo('url'); ?>" title="<?php _e('Home Page'); ?>"><span><?php _e('Home'); ?></span></a></li> -->

    note that i’ve moved the closing html comment code –> right to the end of the code chunk. this will get rid of the extra home link on the far right of the navigation bar.

    as for the autodraft link that looks like a link to a page that’s not there anymore as it’s returning a 404 error.

    there is another way to do all this: use the appearance -> menus section in your dashboard to create a new menu with links to the pages you want to include and then select it’s position (looks like your theme may only have the one) and it should override any other menu settings.

    Thread Starter enablingchange

    (@enablingchange)

    Thanks for the code Lebowski…that’s great!

    Yeah, I don’t know where that Auto Draft came from. I reinstalled the theme on another domain and it didn’t show up…yet ??

    This theme doesn’t have true custom menus, it has a menu widget. So even if I configure the widget to show what I want, in the order I want, without Auto Draft and the extra Home, I still have all those menu items at the top of the default nav bar. Hmm, at first I thought to turn the bar white to hide the menu items, but now I’m wondering if I can remove it all together through the CSS, so it doesn’t render.

    Thoughts?

    -EC

    I had the same problem. I finally went into the theme editor and just wiped out main-nav.php entirely, then set up a custom menu & widget so the navigation is down the right side of the content area instead of across the top.

    This seems to be a poorly coded template; I won’t use it again and if anyone is considering it I would suggest you look elsewhere.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help…how to remove default Nav links and order??’ is closed to new replies.