Title: PDF Image insert
Last modified: August 21, 2016

---

# PDF Image insert

 *  Resolved [Mary Sullivan](https://wordpress.org/support/users/mary-sullivan/)
 * (@mary-sullivan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pdf-image-insert/)
 * I am trying to have PDF images coded into my table press table open in a new 
   window. Now they open in the existing window and require a back arrow to go back
   to my site. Is there a set up option for this? If not, can I add to the code 
   for each PDF in each cell to open the PDF stored in the site images in a new 
   window? Then customers can close the window without accidentally kicking themselves
   off the site. Many Thanks, Mary
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pdf-image-insert/#post-5049413)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * For this, you will either need to activate the “Open in new window” checkbox (
   if you are using the “Insert Link” button for this), or manually edit the HTML
   code for the links after inserting them. The HTML code
 *     ```
       <a href="..."
       ```
   
 * has to be changed to
 *     ```
       <a target="_blank" href="..."
       ```
   
 * That will open the links in a new tab/window when the user clicks it. (Note that
   some people consider it bad behavior by a website to force this, as it takes 
   freedom away from the users.)
 * Regards,
    Tobias
 *  Thread Starter [Mary Sullivan](https://wordpress.org/support/users/mary-sullivan/)
 * (@mary-sullivan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pdf-image-insert/#post-5049666)
 * Thank you for your help. I want to be sure I understand your comment. Right now
   the table is set up with 1 column of PDF data sheets. 1 data sheet for each part.
   Each part takes up a row.
    When you open the data sheet, you are taken out of
   the site unless you use the back arrow. Are you saying this is better than opening
   a separate window and keeping the site active. I find it incredibly annoying 
   to be kicked off a site when I open a document within that site. Maybe there 
   is a third alternative? I am trying to set this up so that it is easy for our
   customers to use. Also, do I insert this code in each cell of the table with 
   a PDF? Thank you Mary
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pdf-image-insert/#post-5049668)
 * Hi Mary,
 * well, for PDF files or other documents, it might make sense to open them in a
   new window, but the question (which I can’t answer for you) is, whether you want
   to force this upon your users.
    With the default state (PDFs opening in the same
   window/tab), you are giving your visitors the choice: They can either open it
   in the tab (by just clicking the link), or they can open it in a new window/tab(
   by clicking the link while holding the “Ctrl”/”Cmd” key or by using right-click“
   Open in new tab”). When changing the default behavior (with the HTML change that
   I suggested), you are basically taking that freedom away from your users. Now,
   if your users are rather inexperienced with web browsers or computers, that might
   make sense.
 * And yes, that HTML code would have to be changed for each link separately.
 * Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PDF Image insert’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [open new window](https://wordpress.org/support/topic-tag/open-new-window/)
 * [Table Press](https://wordpress.org/support/topic-tag/table-press/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/pdf-image-insert/#post-5049668)
 * Status: resolved