• Resolved mlimike

    (@mlimike)


    hello,

    the navigation menu on the top of the page is not what i anticipated. The only options i wanted on the top are Home and Gallery, and the rest would be sub-pages corresponding to the options on the sidebar on the right. Does anyone know how to do this?

    here’s my recent homepage:
    http://www.michael-li.ca/mliportfolio/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi

    Your question is expressed ambiguously. I am guessing that what you are saying is you want to have Home and Gallery at the top, no drop down menus of the other options, and create the other options as links in the sidebar on the page titles you already have there.

    There are various coding techniques to make WordPress do what you are asking, but as you only have two top menu options, and apparently the # of options in the sidebar is small, and not being added to regularly, I’d suggest you just hard code the links.

    Your code in header.php would look like this:

    <ul>
      <li class="current_page_item"><a href="http://www.michael-li.ca/mliportfolio/">home</a></li>
      <li class="page_item page-item-2"><a title="gallery" href="http://www.michael-li.ca/mliportfolio/?page_id=2">gallery</a></li>
    </ul>

    The sidebar code is in sidebar.php. You already have the links to the home page on About, Resume, Contact, so just add the remaining code to call up those specific pages. In this simple case that is by far the fastest way.

    Thread Starter mlimike

    (@mlimike)

    Yes. Thank you, that is what i was looking for. Now i only have 2 options for the main menu, and i’ll need to add pages to the options on the right side. But how would i make that connection? (i’m sorry for the lack of coherence here, i’ve only picked up language coding recently)

    Thread Starter mlimike

    (@mlimike)

    nevermind, i found what i was looking for. But now i have another problem. If you select any of the options on the rightside you’ll see the page title along with the content. Like if you click on About page, you’ll see “about” on top of the screen. How do you get rid of that title

    You probably need to remove the_title() from your page.php template fie.

    Thread Starter mlimike

    (@mlimike)

    yes, that worked, thanks a lot.

    Thread Starter mlimike

    (@mlimike)

    I now have a problem with my rightside bar. If you go my other post, entitled “leaving sidebar menu to the top” you’ll see the problem. If this sounds like a dupe though then i don’t know what tags to type in when i’m looking for the subject.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘navigation setup’ is closed to new replies.