• I am using Yoko’s theme.

    I have a top navigation menu, one of the menu items is called “music”

    when a user clicks this menu item, I want a new html page to open.

    The way that the menu is created I think goes like:

    <nav id=”mainnav” class=”clearfix”>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
    </nav><!– end mainnav –>

    How can I implement this functionality? Any help would be great.

    Thanks a lot!

    Alex.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You should go to Appearance>Menus and create a custom menu for your site. From there you can add a link as a “tab” just as you describe by using the Custom Links option.

    Thread Starter anavagomez

    (@anavagomez)

    Thanks. I followed your directions and I was able to create a MUSIC section/ tab clickable that opens a new page. How can I make the link to open in a new page and not on the same page?

    This is a page with fixed dimensions.

    Once again, thanks for your reply.

    Thread Starter anavagomez

    (@anavagomez)

    I did found how to open the page in a new window/ tab but still I face a problem…I need to set a custom size for that window :/

    Glad you were able to figure out the custom menus; as far as I know, WordPress has no affordance for setting those dimensions.

    However, you may want to be careful about forcing dimensions, as it is generally frowned upon these days. Most modern browsers are set to open a new tab by default, not a new window. For the visitor, if your site is one tab out of many sites they have open, and clicking this MUSIC link opens a new tab that then resizes the window (which resizes all the tabs in it) you might end up with some pretty annoyed users.

    Just my $.02

    Spawning new windows also creates severe problems for many disabled users and may place your site in breach of your local anti-discrimination laws.

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