How do I set the menu to open a blank page?

Discussion in 'Figero WordPress Theme' started by cornelldavis, Mar 14, 2013.

Thread Status:
Not open for further replies.
  1. cornelldavis

    cornelldavis New Member

    Joined:
    Jul 21, 2012
    Messages:
    3
    Likes Received:
    1
    Hi, I want users of my site to be able to open a new page when they click on the link; in html of course we could use the following code

    <a href="http://mysitehere.com/web/untitled.html" target="_blank">hello!</a>

    which will then open a blank new page instead of opening in the existing page. There appears to be no way to do this in the menu options within the theme, is there an alternative option that I can try?
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Add the code given below in your anchor tag
    Code:
    TARGET="_blank"
    For example

    Code:
    <a TARGET="_blank"href="Enter your link address">Enter your text</a>

    This will solve your issue.
     
  3. cornelldavis

    cornelldavis New Member

    Joined:
    Jul 21, 2012
    Messages:
    3
    Likes Received:
    1
    Sorry Gourav, I wasn't clear enough - I meant in the menu itself, as opposed to the page content. Please find below a screenshot to show where and what I mean -


    screenshot.png
     
  4. cornelldavis

    cornelldavis New Member

    Joined:
    Jul 21, 2012
    Messages:
    3
    Likes Received:
    1
    It's ok, I found the answer, sorry to have bothered you with it as it's clearly and easy thing to do as it's a WP option anyway! But for those who may want to know and were either too afraid to ask or didn't know what/where to ask, here is how to do it -

    Go to the menu administration page as per the image in the post above, click on Screen Options (top right), and check the box labelled Link Target under the Show advanced menu properties heading. Now select the appropriate target for your custom link. Easy!

    Now I know that most of you probably already know this, so please excuse us mere novices as we all have to start to learn somewhere, but hopefully this will help others who may, for whatever reason, want their menu items to open in a new window when selected.
     
    Piyush likes this.
Thread Status:
Not open for further replies.

Share This Page