{"id":355,"date":"2026-06-24T06:41:10","date_gmt":"2026-06-24T06:41:10","guid":{"rendered":"https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/"},"modified":"2026-07-03T13:48:05","modified_gmt":"2026-07-03T13:48:05","slug":"publishing-your-library","status":"publish","type":"doc","link":"https:\/\/documentlibrary.pro\/fr\/docs\/publishing-your-library\/","title":{"rendered":"Publishing your library and getting your embed code"},"content":{"rendered":"<p>There are two ways \n\n\n<h2 class=\"wp-block-heading\">Choose what your home page shows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you have built more than one library, you can choose what the home page of your standalone website shows. On the <strong>Publier la biblioth\u00e8que<\/strong> page, under <strong>Your website<\/strong>, set the <strong>Home page<\/strong> to your full all-documents view or a single library. This is useful when some of your libraries are password protected and you do not want the all-documents view shown publicly.<\/p>\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/publish-document-library-to-website.jpg\" alt=\"Choosing how to publish your library: embed it or create a hosted page\"\/>\n\nto share your library. It can live on its own web address as a standalone page, and it can be embedded on any website you already have. Both are set up on the <strong>Publier la biblioth\u00e8que<\/strong> page in your dashboard. Most sites have a single library, and Publish Library is where you get its embed code.<\/p>\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/multiple-document-libraries-embed-codes.jpg\" alt=\"Copying the embed code for each document library\"\/>\n\n<h2 id=\"your-librarys-web-address\">Your library&#8217;s web address<\/h2>\n<p>Every library has its own address in the form <code>your-slug.documentlibrary.app<\/code>, ready to share straight away. If you would rather use your own branded address, such as <code>docs.yourcompany.com<\/code>, you can connect a <a href=\"https:\/\/documentlibrary.pro\/fr\/docs\/document-library-pro-hosted-custom-domain\/\">custom domain<\/a>.<\/p>\n<h2 id=\"getting-your-embed-code\">Getting your embed code<\/h2>\n<p>Open <strong>Publier la biblioth\u00e8que<\/strong> in your dashboard and copy the embed code shown there. This is the right place for the typical single library. (Only if you have built more than one library do you use the <strong>Libraries<\/strong> screen, which has a separate embed code for each one.) Always use the exact code from your own screen, not this example:<\/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<p>The iframe shows your library and the small script lets it resize itself to fit its content. Paste both wherever you want the library to appear.<\/p>\n<h2 id=\"set-your-allowed-domains\">Set your allowed domains<\/h2>\n<p>Add the website or websites where you embed the library to the <strong>allowed domains<\/strong> box. This stops anyone else from placing your library on their own site.<\/p>\n<h2 id=\"add-it-to-your-website\">Add it to your website<\/h2>\n<p>The embed code works on virtually any platform. We have step-by-step guides for <a href=\"https:\/\/documentlibrary.pro\/fr\/docs\/category\/platforms\/\">WordPress, Shopify, Wix, Squarespace, Webflow, and more<\/a>.<\/p>\n<h2 id=\"use-it-as-a-standalone-page\">Use it as a standalone page<\/h2>\n<p>If you prefer not to embed, your library works as its own page. You can add a link to it in your library site&#8217;s menu, or keep it as a separate unlisted page that is hidden from search engines.<\/p>\n<h2 id=\"let-people-submit-documents\">Let people submit documents<\/h2>\n<p>The Publish Library screen also gives you a separate submission-form embed code, which you can paste on any website to let people submit documents to your library for review.<\/p>","protected":false},"excerpt":{"rendered":"<p>Get your library live: use its own web address, or copy the embed code to add your document library to any website.<\/p>","protected":false},"menu_order":3,"template":"","meta":{"footnotes":""},"doc_category":[11],"class_list":["post-355","doc","type-doc","status-publish","hentry","doc_category-getting-started"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Publishing your library and getting your embed code<\/title>\n<meta name=\"description\" content=\"Get your library live: use its own web address, or copy the embed code to add your document library to any website.\" \/>\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\/fr\/docs\/publishing-your-library\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Publishing your library and getting your embed code\" \/>\n<meta property=\"og:description\" content=\"Get your library live: use its own web address, or copy the embed code to add your document library to any website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/documentlibrary.pro\/fr\/docs\/publishing-your-library\/\" \/>\n<meta property=\"og:site_name\" content=\"Document Library Pro\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-03T13:48:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/publish-document-library-to-website.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\\\/publishing-your-library\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/publishing-your-library\\\/\",\"name\":\"Publishing your library and getting your embed code\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/publishing-your-library\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/publishing-your-library\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/publish-document-library-to-website.jpg\",\"datePublished\":\"2026-06-24T06:41:10+00:00\",\"dateModified\":\"2026-07-03T13:48:05+00:00\",\"description\":\"Get your library live: use its own web address, or copy the embed code to add your document library to any website.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/publishing-your-library\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/publishing-your-library\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/publishing-your-library\\\/#primaryimage\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/publish-document-library-to-website.jpg\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/publish-document-library-to-website.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/publishing-your-library\\\/#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\":\"Publishing your library and getting your embed code\"}]},{\"@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\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\",\"name\":\"Document Library Pro\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@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":"Publishing your library and getting your embed code","description":"Get your library live: use its own web address, or copy the embed code to add your document library to any website.","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\/fr\/docs\/publishing-your-library\/","og_locale":"fr_FR","og_type":"article","og_title":"Publishing your library and getting your embed code","og_description":"Get your library live: use its own web address, or copy the embed code to add your document library to any website.","og_url":"https:\/\/documentlibrary.pro\/fr\/docs\/publishing-your-library\/","og_site_name":"Document Library Pro","article_modified_time":"2026-07-03T13:48:05+00:00","og_image":[{"url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/publish-document-library-to-website.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\/publishing-your-library\/","url":"https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/","name":"Publishing your library and getting your embed code","isPartOf":{"@id":"https:\/\/documentlibrary.pro\/#website"},"primaryImageOfPage":{"@id":"https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/#primaryimage"},"image":{"@id":"https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/#primaryimage"},"thumbnailUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/publish-document-library-to-website.jpg","datePublished":"2026-06-24T06:41:10+00:00","dateModified":"2026-07-03T13:48:05+00:00","description":"Get your library live: use its own web address, or copy the embed code to add your document library to any website.","breadcrumb":{"@id":"https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/#primaryimage","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/publish-document-library-to-website.jpg","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/publish-document-library-to-website.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/documentlibrary.pro\/docs\/publishing-your-library\/#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":"Publishing your library and getting your embed code"}]},{"@type":"WebSite","@id":"https:\/\/documentlibrary.pro\/#website","url":"https:\/\/documentlibrary.pro\/","name":"Document Library Pro","description":"Biblioth\u00e8ques de documents consultables pour tout site 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":"fr-FR"},{"@type":"Organization","@id":"https:\/\/documentlibrary.pro\/#organization","name":"Document Library Pro","url":"https:\/\/documentlibrary.pro\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@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 est un logiciel de biblioth\u00e8que de documents h\u00e9berg\u00e9 qui vous permet de publier des biblioth\u00e8ques consultables et filtrables de PDF, de documents et de ressources sur tout site web ou plateforme."}]}},"_links":{"self":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":4,"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc\/355\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc\/355\/revisions\/607"}],"wp:attachment":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc_category?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}