{"id":750,"date":"2026-08-05T17:45:56","date_gmt":"2026-08-05T17:45:56","guid":{"rendered":"https:\/\/documentlibrary.pro\/?post_type=doc&#038;p=750"},"modified":"2026-08-05T18:05:34","modified_gmt":"2026-08-05T18:05:34","slug":"download-buttons-not-working","status":"publish","type":"doc","link":"https:\/\/documentlibrary.pro\/es\/docs\/download-buttons-not-working\/","title":{"rendered":"The download buttons don&#8217;t work in my embedded document library"},"content":{"rendered":"<p>If your document library works perfectly on its own page, but the <strong>Download<\/strong> (and sometimes <strong>Vista previa<\/strong>) buttons do nothing once you embed it on another website, this article explains why and what to do about it.<\/p>\n<h2>What&#8217;s happening<\/h2>\n<p>Some website platforms load embedded content inside a <em>sandboxed<\/em> iframe &mdash; a locked-down container that the web browser deliberately prevents from doing certain things, including downloading files. When your document library is placed inside one of these sandboxes, the browser silently blocks the download, so the button appears to do nothing.<\/p>\n<p>Preview can be affected too: by default the preview opens in a new browser tab, and the same sandbox also blocks new tabs from opening.<\/p>\n<p>This is a restriction imposed by the hosting platform and enforced by the browser &mdash; it isn&#8217;t a fault in Document Library Pro. The identical library downloads perfectly on its own URL, and on any platform that doesn&#8217;t sandbox embeds.<\/p>\n<p><strong>Wix<\/strong> is the most common example: both of Wix&#8217;s embed options (&ldquo;Embed HTML\/Code&rdquo; and &ldquo;Embed a Site&rdquo;) wrap your library in a sandbox that doesn&#8217;t permit downloads.<\/p>\n<h2>How to confirm this is the cause<\/h2>\n<p>Please check this first, because if the symptoms are different it may be a separate issue that we <em>can<\/em> fix for you:<\/p>\n<ol>\n<li><strong>Open the library&#8217;s direct URL.<\/strong> Copy the address from your embed code (for example <code>https:\/\/your-library.documentlibrary.app\/?dlp_embed=1<\/code>) and open it in a new browser tab. Click Download. If it downloads fine there but not when embedded, the embedding sandbox is the cause.<\/li>\n<li><strong>Check the browser console (optional, technical).<\/strong> On the embedded page, open your browser&#8217;s developer console. A message such as &ldquo;<em>Download is disallowed. The frame&hellip; is sandboxed and the &#8216;allow-downloads&#8217; permission is not set<\/em>&rdquo; or <code>ERR_BLOCKED_BY_CLIENT<\/code> confirms it.<\/li>\n<\/ol>\n<p>If the file <strong>also<\/strong> fails to download from the direct URL, this is <em>not<\/em> the sandbox issue &mdash; please <a href=\"https:\/\/documentlibrary.pro\/es\/support\/\">contact support<\/a> and we&#8217;ll help you get to the bottom of it.<\/p>\n<h2>How to fix it<\/h2>\n<h3>Wix<\/h3>\n<p>Install and use the Document Library Pro Wix app rather than pasting an embed code. The app adds your library as a native Wix element that isn&#8217;t sandboxed, so downloads and preview work normally. If you&#8217;ve pasted the embed code and are seeing this problem, please <a href=\"https:\/\/documentlibrary.pro\/es\/support\/\">contact support<\/a> and we&#8217;ll help you switch over.<\/p>\n<h3>Self-hosted WordPress, Webflow, Framer, or plain HTML sites<\/h3>\n<p>These don&#8217;t sandbox embeds, so the standard embed code works, downloads included. If you&#8217;re seeing the problem on one of these, it&#8217;s something else &mdash; please <a href=\"https:\/\/documentlibrary.pro\/es\/support\/\">contact support<\/a>.<\/p>\n<h3>Other website builders (Squarespace, Notion, and similar)<\/h3>\n<p>If the platform offers an official Document Library Pro app or integration, use that. If it only offers a generic &ldquo;embed code&rdquo; box and sandboxes it, downloads can&#8217;t be switched on from our side &mdash; but you can still let visitors <strong>view<\/strong> your documents (see below).<\/p>\n<h3>View-only option (works even inside a sandbox)<\/h3>\n<p>If downloads can&#8217;t be enabled on your platform, you can still let visitors open and read documents in a viewer on the page. Simply turn <strong>off<\/strong> the download button in your library settings and leave the <strong>preview<\/strong> button on. Inside a sandbox, the preview automatically opens each document in a viewer on the page (rather than a new tab), so it works even where downloads don&#8217;t.<\/p>\n<p>This works for <strong>PDFs and images<\/strong>. Word and Excel files can&#8217;t be displayed in a browser this way, so a view-only setup suits libraries made up of PDFs and images. If you&#8217;d like a hand setting this up, <a href=\"https:\/\/documentlibrary.pro\/es\/support\/\">contact support<\/a>.<\/p>\n<h2>Still stuck?<\/h2>\n<p>Get in touch via <a href=\"https:\/\/documentlibrary.pro\/es\/support\/\">support<\/a> with your platform name and the page URL, and we&#8217;ll advise the best option for your particular setup.<\/p>","protected":false},"excerpt":{"rendered":"<p>If your document library works perfectly on its own page, but the Download (and sometimes Preview) buttons do nothing once you embed it on another website, this article explains why and what to do about it. What&#8217;s happening Some website platforms load embedded content inside a sandboxed iframe &mdash; a locked-down container that the web [&hellip;]<\/p>\n","protected":false},"menu_order":0,"template":"","meta":{"footnotes":""},"doc_category":[10],"class_list":["post-750","doc","type-doc","status-publish","hentry","doc_category-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The download buttons don&#039;t work in my embedded document library<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/documentlibrary.pro\/es\/docs\/download-buttons-not-working\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The download buttons don&#039;t work in my embedded document library\" \/>\n<meta property=\"og:description\" content=\"If your document library works perfectly on its own page, but the Download (and sometimes Preview) buttons do nothing once you embed it on another website, this article explains why and what to do about it. What&#8217;s happening Some website platforms load embedded content inside a sandboxed iframe &mdash; a locked-down container that the web [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/documentlibrary.pro\/es\/docs\/download-buttons-not-working\/\" \/>\n<meta property=\"og:site_name\" content=\"Document Library Pro\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-05T18:05:34+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/download-buttons-not-working\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/download-buttons-not-working\\\/\",\"name\":\"The download buttons don't work in my embedded document library\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\"},\"datePublished\":\"2026-08-05T17:45:56+00:00\",\"dateModified\":\"2026-08-05T18:05:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/download-buttons-not-working\\\/#breadcrumb\"},\"inLanguage\":\"es-ES\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/download-buttons-not-working\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/download-buttons-not-working\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"The download buttons don&#8217;t work in my embedded document library\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"name\":\"Document Library Pro\",\"description\":\"Searchable document libraries for any website\",\"publisher\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/documentlibrary.pro\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es-ES\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\",\"name\":\"Document Library Pro\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es-ES\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Document Library Pro\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"description\":\"Document Library Pro is hosted document library software that lets you publish searchable, filterable libraries of PDFs, documents and resources on any website or platform.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The download buttons don't work in my embedded document library","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/documentlibrary.pro\/es\/docs\/download-buttons-not-working\/","og_locale":"es_ES","og_type":"article","og_title":"The download buttons don't work in my embedded document library","og_description":"If your document library works perfectly on its own page, but the Download (and sometimes Preview) buttons do nothing once you embed it on another website, this article explains why and what to do about it. What&#8217;s happening Some website platforms load embedded content inside a sandboxed iframe &mdash; a locked-down container that the web [&hellip;]","og_url":"https:\/\/documentlibrary.pro\/es\/docs\/download-buttons-not-working\/","og_site_name":"Document Library Pro","article_modified_time":"2026-08-05T18:05:34+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/documentlibrary.pro\/docs\/download-buttons-not-working\/","url":"https:\/\/documentlibrary.pro\/docs\/download-buttons-not-working\/","name":"The download buttons don't work in my embedded document library","isPartOf":{"@id":"https:\/\/documentlibrary.pro\/#website"},"datePublished":"2026-08-05T17:45:56+00:00","dateModified":"2026-08-05T18:05:34+00:00","breadcrumb":{"@id":"https:\/\/documentlibrary.pro\/docs\/download-buttons-not-working\/#breadcrumb"},"inLanguage":"es-ES","potentialAction":[{"@type":"ReadAction","target":["https:\/\/documentlibrary.pro\/docs\/download-buttons-not-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/documentlibrary.pro\/docs\/download-buttons-not-working\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/documentlibrary.pro\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/documentlibrary.pro\/docs\/"},{"@type":"ListItem","position":3,"name":"The download buttons don&#8217;t work in my embedded document library"}]},{"@type":"WebSite","@id":"https:\/\/documentlibrary.pro\/#website","url":"https:\/\/documentlibrary.pro\/","name":"Document Library Pro","description":"Bibliotecas de documentos con b\u00fasqueda para cualquier sitio web","publisher":{"@id":"https:\/\/documentlibrary.pro\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/documentlibrary.pro\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es-ES"},{"@type":"Organization","@id":"https:\/\/documentlibrary.pro\/#organization","name":"Document Library Pro","url":"https:\/\/documentlibrary.pro\/","logo":{"@type":"ImageObject","inLanguage":"es-ES","@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","width":512,"height":512,"caption":"Document Library Pro"},"image":{"@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/"},"description":"Document Library Pro es un software de biblioteca de documentos alojada que le permite publicar bibliotecas con b\u00fasqueda y filtros de PDF, documentos y recursos en cualquier sitio web o plataforma."}]}},"_links":{"self":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":2,"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc\/750\/revisions"}],"predecessor-version":[{"id":755,"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc\/750\/revisions\/755"}],"wp:attachment":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/media?parent=750"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc_category?post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}