Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #732275

    Eg: when i am at the homepage I click in menu (topbar) on adding Theme options. Sometimes the page comes in a new page.

    This was also when i wanted to change a page. Why he will not open this in the same window? This may cause errors! When opening and adding in antoher screen…

    Once i had 5 (!) different tabs in my browser.

    • This topic was modified 7 years, 10 months ago by Kuitje.
    #732344

    Hi Kuitje!

    Please add following code to Functions.php file in Appearance > Editor

    function av_remove_target(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('#wp-admin-bar-avia a').removeAttr('target');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'av_remove_target');

    Cheers!
    Yigit

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