{"id":271,"date":"2026-06-23T18:31:09","date_gmt":"2026-06-23T18:31:09","guid":{"rendered":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/"},"modified":"2026-06-24T09:40:40","modified_gmt":"2026-06-24T09:40:40","slug":"add-document-library-wordpress","status":"publish","type":"doc","link":"https:\/\/documentlibrary.pro\/it\/docs\/add-document-library-wordpress\/","title":{"rendered":"Aggiungi la tua libreria documenti a WordPress"},"content":{"rendered":"<p>Adding your hosted document library to any WordPress page or post is just a matter of dropping in a short embed code. The whole thing takes a couple of minutes, with nothing to install and nothing to keep updated.<\/p>\n<p><strong>The key thing to get right:<\/strong> your embed code belongs in a <strong>Custom HTML<\/strong> block if you use the block editor, or in the <strong>Text<\/strong> tab if you use the Classic editor. Avoid the regular visual editor, which can remove embed code when you save. Both the Custom HTML block and the Text tab leave it intact.<\/p>\n<h2 id=\"before-you-start-copy-your-embed-code\">Before you start: copy your embed code<\/h2>\n<p>Nel tuo dashboard ospitato, apri <strong>Pubblica Libreria<\/strong> per trovare il tuo codice embed, quindi copialo. La maggior parte dei siti ha una singola libreria e la pagina Pubblica libreria \u00e8 dove si trova il relativo codice embed. (Se hai creato pi\u00f9 di una libreria, copia il codice per quella desiderata dalla schermata <strong>Libraries<\/strong> .) Incolla sempre il codice esatto dal tuo pannello di controllo, non l&#8217;esempio seguente:<\/p>\n<pre>&lt;iframe src=\"https:\/\/your-library.documentlibrary.app\/?dlp_embed=1\" title=\"Document library\" style=\"width:100%;border:0;height:600px;\" loading=\"lazy\"&gt;&lt;\/iframe&gt;\n&lt;script src=\"https:\/\/your-library.documentlibrary.app\/?dlp_embed_resize=1\" async&gt;&lt;\/script&gt;<\/pre>\n<h2 id=\"add-your-library-to-a-page-or-post\">Add your library to a page or post<\/h2>\n<p>For a self-contained document library, such as a downloads, resources, or publications page, this is the route to take.<\/p>\n<ol>\n<li>From your WordPress dashboard, head to <strong>Pages &rarr; Add New<\/strong>, or open whichever existing page or post you want to edit.<\/li>\n<li>Give it a title, for example <strong>libreria di documenti<\/strong>.<\/li>\n<li>Select the <strong>+<\/strong> button, type <strong>Custom HTML<\/strong> into the search, and insert the block.<\/li>\n<li>Drop your embed code into the block.<\/li>\n<li>Scegli <strong>Pubblica<\/strong> or <strong>Aggiorna<\/strong>.<\/li>\n<li>So visitors can find it, add the page to your menu via <strong>Appearance &rarr; Menus<\/strong>.<\/li>\n<\/ol>\n<p>Select <strong>View Page<\/strong> to see the library live on your site. From there, visitors can run searches, narrow results by category, and preview or download any document.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/wordpress-document-library.jpg\" alt=\"A document library displayed on a WordPress page\" style=\"max-width:100%;height:auto;border:1px solid #e3e8ee;border-radius:8px;margin:8px 0;\" \/><\/p>\n<h2 id=\"using-the-classic-editor\">Using the Classic editor<\/h2>\n<p>On a site running the Classic editor, open the page and click the <strong>Text<\/strong> tab in the top-right corner of the content box, which flips you from Visual to HTML. Paste the embed code at the spot where the library should appear, then update the page.<\/p>\n<h2 id=\"if-the-library-does-not-resize-automatically\">If the library does not resize automatically<\/h2>\n<p>Bundled into the embed code is a small helper script whose job is to size the library to its content. Certain WordPress security configurations strip out scripts that non-administrators add. Should that occur, the library carries on working, simply showing at a fixed height with its own scrollbar. To keep the resize script intact, paste the code while signed in as an administrator.<\/p>\n<h2 id=\"prefer-to-host-it-yourself\">Prefer to host it yourself?<\/h2>\n<p>There is also a self-hosted <a href=\"https:\/\/barn2.com\/wordpress-plugins\/document-library-pro\/\">WordPress plugin<\/a> version of Document Library Pro, which builds the library straight inside your own site. Since the hosted version above asks for no installation and no upkeep, it is the option most WordPress users go for.<\/p>","protected":false},"excerpt":{"rendered":"<p>Embed your hosted document library on any WordPress page or post in minutes using a Custom HTML block, with nothing to install or maintain.<\/p>","protected":false},"menu_order":0,"template":"","meta":{"footnotes":""},"doc_category":[6],"class_list":["post-271","doc","type-doc","status-publish","hentry","doc_category-platforms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Add your document library to WordPress<\/title>\n<meta name=\"description\" content=\"Embed your hosted document library on any WordPress page or post in minutes using a Custom HTML block, with nothing to install or maintain.\" \/>\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\/it\/docs\/add-document-library-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add your document library to WordPress\" \/>\n<meta property=\"og:description\" content=\"Embed your hosted document library on any WordPress page or post in minutes using a Custom HTML block, with nothing to install or maintain.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/documentlibrary.pro\/it\/docs\/add-document-library-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Document Library Pro\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-24T09:40:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/wordpress-document-library.jpg\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/\",\"name\":\"Add your document library to WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/wordpress-document-library.jpg\",\"datePublished\":\"2026-06-23T18:31:09+00:00\",\"dateModified\":\"2026-06-24T09:40:40+00:00\",\"description\":\"Embed your hosted document library on any WordPress page or post in minutes using a Custom HTML block, with nothing to install or maintain.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/wordpress-document-library.jpg\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/wordpress-document-library.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/add-document-library-wordpress\\\/#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\":\"Add your document library to WordPress\"}]},{\"@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\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\",\"name\":\"Document Library Pro\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@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":"Aggiungi la tua libreria documenti a WordPress","description":"Embed your hosted document library on any WordPress page or post in minutes using a Custom HTML block, with nothing to install or maintain.","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\/it\/docs\/add-document-library-wordpress\/","og_locale":"it_IT","og_type":"article","og_title":"Add your document library to WordPress","og_description":"Embed your hosted document library on any WordPress page or post in minutes using a Custom HTML block, with nothing to install or maintain.","og_url":"https:\/\/documentlibrary.pro\/it\/docs\/add-document-library-wordpress\/","og_site_name":"Document Library Pro","article_modified_time":"2026-06-24T09:40:40+00:00","og_image":[{"url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/wordpress-document-library.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/","url":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/","name":"Aggiungi la tua libreria documenti a WordPress","isPartOf":{"@id":"https:\/\/documentlibrary.pro\/#website"},"primaryImageOfPage":{"@id":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/wordpress-document-library.jpg","datePublished":"2026-06-23T18:31:09+00:00","dateModified":"2026-06-24T09:40:40+00:00","description":"Embed your hosted document library on any WordPress page or post in minutes using a Custom HTML block, with nothing to install or maintain.","breadcrumb":{"@id":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/#primaryimage","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/wordpress-document-library.jpg","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/wordpress-document-library.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/documentlibrary.pro\/docs\/add-document-library-wordpress\/#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":"Add your document library to WordPress"}]},{"@type":"WebSite","@id":"https:\/\/documentlibrary.pro\/#website","url":"https:\/\/documentlibrary.pro\/","name":"Document Library Pro","description":"Librerie di documenti ricercabili per qualsiasi sito 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":"it-IT"},{"@type":"Organization","@id":"https:\/\/documentlibrary.pro\/#organization","name":"Document Library Pro","url":"https:\/\/documentlibrary.pro\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@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 e un software per librerie documenti ospitate che consente di pubblicare librerie ricercabili e filtrabili di PDF, documenti e risorse su qualsiasi sito web o piattaforma."}]}},"_links":{"self":[{"href":"https:\/\/documentlibrary.pro\/it\/wp-json\/wp\/v2\/doc\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentlibrary.pro\/it\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/documentlibrary.pro\/it\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":1,"href":"https:\/\/documentlibrary.pro\/it\/wp-json\/wp\/v2\/doc\/271\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/documentlibrary.pro\/it\/wp-json\/wp\/v2\/doc\/271\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/documentlibrary.pro\/it\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/documentlibrary.pro\/it\/wp-json\/wp\/v2\/doc_category?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}