-
AuthorPosts
-
January 6, 2018 at 2:59 pm #894096
Hi
I know this topic has been mentioned here many times. I’ve tried several of the solutions without any luck.
I’ve added the different codes to function.php, but the links in my mega menu still won’t open in a new window.
Could you please help me?
I’ve added details under private.Thank you in advance
January 6, 2018 at 6:32 pm #894164Hey Kai-Asle,
This could be the If Menu plugin overriding the setting.
Here is the code you can put in your funtions.phpfunction av_menu_links_new_tab() { ?> <script> jQuery(window).load(function() { jQuery('#menu-item-1797 .avia_mega_div.avia_mega6 menu-item a').each(function() { var el = jQuery(this); el.attr('target','_blank'); }); }); </script> <?php } add_action('wp_footer', 'av_menu_links_new_tab');
If you need further assistance please let us know.
Best regards,
VictoriaJanuary 6, 2018 at 8:00 pm #894185Hi, Victoria.
Thank for your swift answer. Unfortunately that didn’t help.
Kai-AsleJanuary 7, 2018 at 2:57 pm #894339Hi Kai-Asle,
Sorry, one dot missing. Please try this code:
function av_menu_links_new_tab() { ?> <script> jQuery(window).load(function() { jQuery('#menu-item-1797 .avia_mega_div.avia_mega6 .menu-item a').each(function() { var el = jQuery(this); el.attr('target','_blank'); }); }); </script> <?php } add_action('wp_footer', 'av_menu_links_new_tab');
Best regards,
VictoriaJanuary 7, 2018 at 3:17 pm #894353Hi, Victoria.
That didn’t work either.
Maybe I’m doing something wrong. Do you mind checking my functions.php?
I added the ftp details under Private.
Kai-AsleJanuary 7, 2018 at 7:47 pm #894433Hi Kai-Asle,
Can you please enable the Appearance > Editor?
Best regards,
VictoriaJanuary 7, 2018 at 8:17 pm #894454I was affraid you would say that. Somehow it has disappeard. I can’t find it.
January 8, 2018 at 6:12 am #894599Hi,
Please try to add this to your functions.php file to bring that option back:
//Enable Editing in Dashboard define('DISALLOW_FILE_EDIT', false);
Best regards,
RikardJanuary 8, 2018 at 8:56 am #894622Hi, Rikard.
I have now tried that. Still no luck. Will you try on your own?
I’ve sent details in private.
Kai-AsleJanuary 9, 2018 at 10:57 pm #895394Hi,
What is the port? I cant connect on 21
Best regards,
BasilisJanuary 9, 2018 at 11:00 pm #895396It is 21. I just tried and connected immidiately.
January 13, 2018 at 12:58 pm #896882Any news on this one?
January 14, 2018 at 12:20 pm #897059Hi,
Sorry for the late response. I have added Victoria’s code in functions.php and it’s good. Let us know if you need more assistance :)
Best regards,
NikkoJanuary 14, 2018 at 5:59 pm #897117Hi, Nikko.
Thank you so much. I thought I had tried that. It’s the functions.php file in wp-includes, right?
Somehow my editor has vanished. Can you locate that for me, please?
Kai-AsleJanuary 14, 2018 at 7:09 pm #897133Hi Kai-Asle,
It’s located in wp-content > themes > enfold > functions.php
Best regards,
NikkoJanuary 14, 2018 at 8:38 pm #897172Okay, Nikko.
One final thing. Where has it gone? I can’t find the Enfold folder in themes.January 15, 2018 at 4:52 am #897357Hi,
You can find it in this directory (in private content). As for the editor this post might help: http://www.wpbeginner.com/wp-tutorials/how-to-disable-theme-and-plugin-editors-from-wordpress-admin-panel/
Best regards,
NikkoMay 10, 2018 at 11:46 pm #954933Hi, Nikko
Sorry for writing you directly. Please help me.
My purchase code is not working for some reason.
I need to start a new ticket on your support site. It has never been a problem before.
Thank you.
Kai-Asle
- This reply was modified 6 years, 8 months ago by Nikko.
May 11, 2018 at 10:12 am #955140Hi Kai-Asle,
I have moved your purchase code in private content, so it can only be seen by moderators.
I’ve checked on your purchase code and there’s no registered user with it.
Can you elaborate more on what issue you’re experiencing with it?Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.