Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #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

    #894164

    Hey Kai-Asle,

    This could be the If Menu plugin overriding the setting.
    Here is the code you can put in your funtions.php

    
    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');
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #894185

    Hi, Victoria.
    Thank for your swift answer. Unfortunately that didn’t help.
    Kai-Asle

    #894339

    Hi 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,
    Victoria

    #894353

    Hi, 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-Asle

    #894433

    Hi Kai-Asle,

    Can you please enable the Appearance > Editor?

    Best regards,
    Victoria

    #894454

    I was affraid you would say that. Somehow it has disappeard. I can’t find it.

    #894599

    Hi,

    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,
    Rikard

    #894622

    Hi, Rikard.
    I have now tried that. Still no luck. Will you try on your own?
    I’ve sent details in private.
    Kai-Asle

    #895394

    Hi,

    What is the port? I cant connect on 21

    Best regards,
    Basilis

    #895396

    It is 21. I just tried and connected immidiately.

    #896882

    Any news on this one?

    #897059

    Hi,

    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,
    Nikko

    #897117

    Hi, 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-Asle

    #897133

    Hi Kai-Asle,

    It’s located in wp-content > themes > enfold > functions.php

    Best regards,
    Nikko

    #897172

    Okay, Nikko.
    One final thing. Where has it gone? I can’t find the Enfold folder in themes.

    #897357

    Hi,

    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,
    Nikko

    #954933

    Hi, 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.
    #955140

    Hi 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

Viewing 19 posts - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.