-
AuthorPosts
-
August 28, 2014 at 4:22 pm #310503
Menu Column under Mega Menu isn’t opening in new tab even though I specified it.
Under Appearance => Menus, I have a custom link under my “Contact Us” menu. I need this to open in a new tab.
I have went to Screen Options, have enabled everything, and have set the Link Target to “New Window or Tab” for the custom link. However, it still opens in the same tab / window.
Any help, please? I only want this item to open in a new tab. Nothing else.
Thanks!
August 29, 2014 at 7:07 am #310801Hi aregowe!
Thank you for using Enfold.
We would like to check the actual website. Please post the url here. Note that mega menu titles or the first column on the mega menu set will not accept the link target attribute. You can add this on functions.php to change the target attribute to blank:
function megamenu_title_link() { ?> <script type="text/javascript"> jQuery(window).load(function(){ jQuery('.mega_menu_title a').attr('target', '_blank'); }); </script> <?php } add_action('wp_head', 'megamenu_title_link');
Regards,
IsmaelAugust 29, 2014 at 9:56 am #310832Will changing the target to blank….. open up a new tab?
I have this problem and also want to know how to control the font size of the mega menu. The font size increased 100% from the home page header size. I want o choose or keep them same size?
How is this possible?
Thank you
August 29, 2014 at 12:49 pm #310883Hi!
Will changing the target to blank….. open up a new tab?
Yes it would
I answered your question on your topic here – https://kriesi.at/support/topic/home-page-mega-menu-include-all-categories-and-pages/#post-310882
Regards,
YigitApril 17, 2017 at 11:49 pm #778995Thank you. I am having the same issue. I want to use Megamenu and have it open a new page. I can’t do this unless I make the Menu item a stand alone item. Meaning when I drag it under a menu item, it won’t open a new tab or page.
Adding the code above to the functions.php page only breaks the website code.
Simply saying to add code is assuming people know where to add the code and in the correct form with proper code attributes.
Lets not assume anything ever and possibly coding will become a bit more friendly.Is there a fix for this?
Thank you
April 18, 2017 at 7:25 pm #779582Hi 702arts,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.
Best regards,
VictoriaApril 20, 2017 at 5:03 pm #780663Hey, thanks for your that solution.
Isn’t that something you could fix in the next update?
the incompatibilty between the native “New Tab”-Funtionality and Mega Menu Headers seems really like a bug than anything else…thanks for you support!
May 10, 2017 at 3:43 am #790779Sure
May 11, 2017 at 4:37 pm #791719Hi 702arts,
I checked the menu, it works fine. Did you get it working or you still need help?
If you need further assistance please let us know.
Best regards,
VictoriaMay 11, 2017 at 5:34 pm #791768@Victoria Could you integrate that by default as an option? without adding javascript?
thanks!
May 12, 2017 at 12:34 pm #792247Hi Innovie,
Sorry, I am so lost now, with everyone writing to this thread. What do you want to do without Javascript?
Best regards,
VictoriaMay 12, 2017 at 8:38 pm #792487Okay great. Just create a link marked external link and have it link to an outside website like google and you will have fixed the problem just by adding a link to an external site.
When I say add a link to a new page, what I meant was an external page or another website. Sorry for the confusion.
This option is not available as I can see.
Brad
May 14, 2017 at 11:59 am #792898Hi 702arts,
I was about to check you function.php for the code.
Best regards,
VictoriaAugust 31, 2017 at 9:01 am #846136This reply has been marked as private.September 1, 2017 at 5:35 am #846600Thanks. It seems as though mega menu has some issues.
Brad
September 1, 2017 at 10:55 am #846790I just want to add a menu item to the menu bar and have it open a new web page or tab.
It’s a simple wordpress action that I’ve been using for years but no matter what I do it just won’t work.
Very frustrating to have to recode a wordpress default functions.
If you can go to http://tempnet1.com
look at the book a flight link and make it open in a new tab or window then I salute you.
Thank you
Brad
September 1, 2017 at 11:41 pm #847022Thanks opening a new thread for this problem in order to achieve a faster result.
Thank you
September 1, 2017 at 11:42 pm #847024Anyone working on this core issue?
Thanks
September 2, 2017 at 11:57 pm #847252 -
AuthorPosts
- You must be logged in to reply to this topic.