{"id":2532,"date":"2016-07-28T22:52:34","date_gmt":"2016-07-29T03:52:34","guid":{"rendered":"http:\/\/www.ragesw.com\/blog\/?p=2532"},"modified":"2018-04-10T02:16:19","modified_gmt":"2018-04-10T07:16:19","slug":"pdf-file-downloads-using-popup-windows","status":"publish","type":"post","link":"https:\/\/www.ragesw.com\/blog\/2016\/07\/28\/pdf-file-downloads-using-popup-windows\/","title":{"rendered":"PDF File Downloads Using Popup Windows"},"content":{"rendered":"<p>EverWeb\u2019s popup window hyperlink feature is an extremely useful and versatile website design tool.\u00a0It&#8217;s great for keeping visitors focused as the browser background is greyed out when the popup window is in use. That&#8217;s useful when you want your visitor to concentrate on filling out a Contact Form or anything else that may require a &#8216;call to action&#8217;. Popup windows are also good to use for additional information that&#8217;s useful, but not essential, to the main message, or theme, of your page e.g. clicking on an image of a person shows\u00a0a popup biography, clicking an address link shows a map etc. There are almost unlimited ways to use a popup window. \u00a0In the example below we show how you can use to use a popup window for downloading a PDF file. A fictional company, &#8216;iPicture&#8217;, wants to offer it&#8217;s customers a free download of their photography e-book &#8216;Point, Shoot, Share&#8217;. Their website uses EverWeb&#8217;s built in &#8216;Software&#8217; Theme Template.<\/p>\n<p>&nbsp;<\/p>\n<p>1. Firstly, a PDF file should be made ready. A PDF file is a good choice for downloads as it&#8217;s file format is operating system independent. That makes PDF&#8217;s easy to access almost anywhere. Many apps, such as Microsoft Word and Apple Pages, \u00a0can convert their own native document formats to PDF file format.<\/p>\n<p>2. Once you have created your PDF file, convert it into a ZIP file. A ZIP file will compress the file making it quicker to download for your visitor. Locate the PDF file in OS X&#8217;s Finder, then right click on it. Select the option to \u2018Compress\u2019 the file. This will produce a new file with the same name as the original but with a ZIP extension added at the end. You may edit the name of the new file to remove the &#8216;PDF&#8217; extension. Remember to keep the &#8216;ZIP&#8217; extension though.<\/p>\n<p>2. With the ZIP file ready, open your EverWeb Project file. If you haven&#8217;t done so already, create the page that will contain the hyperlink to the popup widow. The hyperlink can be a piece of text, an image or a button. Often a button is best as it acts as a \u2018Call To Action\u2019, i.e. something that is clearly visible and gets your visitor to respond, to take action!<\/p>\n<p>3. If you want to use a button, you can easily create on by drag and dropping a rectangle shape on to the Editor Window. Next, style the rectangle as you want. Double click inside the rectangle to add the button text, in the same way you do for a text box. Use the Fonts Panel to style and size the text. To center the button text, highlight the text itself. Use the horizontal and vertical alignment buttons in the Text Inspector to center the text. If the button does not align properly, make sure \u00a0sure that \u2018After Paragraph\u2019 is set to zero.<\/p>\n<p>4. After creating your download link button, you need to create the popup window. This is just another page that is suitability sized and styled. Start by adding a new\u00a0page. In our example, we used the blank page style of the \u2018Software\u2019 Theme Template. Name the page appropriately to\u00a0indicate it\u2019s function e.g. &#8216;Popup PDF Download&#8217;.<\/p>\n<p>5. As this is a popup window, it will only part of the page. In this example we will make it 400 x 400 px. To achieve this effect, go to the Page Inspector tab and use\u00a0the following settings:<\/p>\n<ul>\n<li>Top Margin: 0<\/li>\n<li>Header Height: 0<\/li>\n<li>Content Width: 400<\/li>\n<li>Content Height.: 350<\/li>\n<li>Footer: 50<\/li>\n<\/ul>\n<p>Note that the Content Height and Footer combined equal 400.<\/p>\n<p>6. With the popup window&#8217;s page dimensions set, design the popup window page as desired. Add\u00a0a button, in the same way as we did above, that will be used to initiate the PDF File download.<\/p>\n<p>7. With the button selected, go to the Hyperlinks Inspector and &#8216;Enable as Hyperlink&#8217;. In the \u2018Link To\u2019 drop down box, select \u2018A File\u2019. You will see a \u2018Choose\u2026\u2019 button appear below the \u2018Behavior\u2019 drop down section. Click on the \u2018Choose\u2026\u2019 button and select the ZIP file you created earlier.<\/p>\n<p>8. You have now completed your popup window page. Return to the original page containing the link button to the popup window page so that you can add the link in.<\/p>\n<div id=\"attachment_2538\" style=\"width: 774px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/Ebook-download-button.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2538\" class=\"wp-image-2538\" src=\"http:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/Ebook-download-button.png\" alt=\"The E-Book Download button's settings in the Hyperlinks Inspector\" width=\"764\" height=\"468\" srcset=\"https:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/Ebook-download-button.png 1405w, https:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/Ebook-download-button-300x184.png 300w, https:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/Ebook-download-button-768x471.png 768w, https:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/Ebook-download-button-1024x628.png 1024w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/a><p id=\"caption-attachment-2538\" class=\"wp-caption-text\">The E-Book Download button&#8217;s settings in the Hyperlinks Inspector<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>9. Click on the link button to select it then go to the Hyperlinks Inspector. This time, leave the \u2018Link To\u2019 drop down as \u2018One of My Pages\u2019. In the \u2018Behavior\u2019 drop down box, set it to \u2018Open in Popup Window\u2019.<\/p>\n<p>10. When you change the &#8216;Behavior&#8217; to \u2018Open in Popup Window\u2019 options to change the height and width of the popup window will appear. Set both values to 400. See the above screen shot.<\/p>\n<p>11. Finally set the \u2018Page:\u2019 drop down box to your popup window page.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_2539\" style=\"width: 774px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/popup-window-for-download.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2539\" class=\"wp-image-2539\" src=\"http:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/popup-window-for-download.png\" alt=\"popup window for download\" width=\"764\" height=\"749\" srcset=\"https:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/popup-window-for-download.png 900w, https:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/popup-window-for-download-300x294.png 300w, https:\/\/www.ragesw.com\/blog\/wp-content\/uploads\/2016\/07\/popup-window-for-download-768x753.png 768w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/a><p id=\"caption-attachment-2539\" class=\"wp-caption-text\">The Popup Window with the page that links to the popup window greyed out in the background.<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>You&#8217;re finished! When publishing your\u00a0website, don&#8217;t forget to test that the file downloads and unzips properly to your computer. In our example, when the visitor clicks on the &#8216;E-Book Download&#8217; button on the Home page, the popup window in the screenshot above will display. The Home page background can see seen &#8216;greyed out&#8217;, focusing the visitor on how to download the e-book.<\/p>\n<p>If you have a question about Popup Windows in EverWeb, please let us know in the Comments Section below. We&#8217;re happy to help! <!--codes_iframe--><!--\/codes_iframe--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>EverWeb\u2019s popup window hyperlink feature is an extremely useful and versatile website design tool.\u00a0It&#8217;s great for keeping visitors focused as the browser background is greyed out when the popup window is in use. That&#8217;s useful when you want your visitor to concentrate on filling out a Contact Form or anything else that may require a [&hellip;]<\/p>\n","protected":false},"author":844,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,252,2],"tags":[315,279,314,313],"class_list":["post-2532","post","type-post","status-publish","format-standard","hentry","category-everweb","category-everweb-software","category-software","tag-downloads","tag-everweb","tag-pdf-files","tag-popup-window"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/posts\/2532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/users\/844"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/comments?post=2532"}],"version-history":[{"count":11,"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/posts\/2532\/revisions"}],"predecessor-version":[{"id":3589,"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/posts\/2532\/revisions\/3589"}],"wp:attachment":[{"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/media?parent=2532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/categories?post=2532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ragesw.com\/blog\/wp-json\/wp\/v2\/tags?post=2532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}