Open pdf in new tab

Home Forums Legacy Support Support queries Setup issues Open pdf in new tab

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #382804
    gbac
    Participant
    Hello, I have followed the detailed instructions in the post: https://wplms.io/support/forums/topic/attachment-download-bug-issue-and-open-in-_blank/ And, despite the fact that target="_blank" appears in the link code (looking with the browser inspector), it still does not open the pdf in a new tab. Any ideas? Thanks
    #382805
    gbac
    Participant
    This reply has been marked as private.
    #382819
    Veronica
    Moderator
    hi please use this:
    <script>
    
    jQuery(document).ready(function(){ jQuery('body').find('.unitattachments a').attr('target', '_blank'); });
    
    $('.unit_content').on('unit_traverse',function(){  jQuery('body').find('.unitattachments a').attr('target', '_blank');  });
    
    </script>
    #382855
    gbac
    Participant
    I am sorry to tell you that it is just the code that I am already using. Any other idea why it happens? Thanks
    #382870
    Veronica
    Moderator
    let me check the same on your site
    #382873
    Veronica
    Moderator
    This reply has been marked as private.
    #382903
    gbac
    Participant
    This reply has been marked as private.
    #382942
    Veronica
    Moderator
    hi just checking the same
    #382943
    Veronica
    Moderator
    yes right this is an issue https://trello.com/c/tyChbRih
    #382953
    gbac
    Participant
    ok, thank you very much for confirming it I will be pending All the best
    #382992
    Veronica
    Moderator
    remaining this topic open so you can ask related queries here
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Open pdf in new tab’ is closed to new replies.