Come inserire una libreria documenti in Shopify

Il app Shopify di Document Library Pro automatically adds a main Documents page to your store that lists all of your documents.

You can also create additional libraries, each listing a different set of documents, and insert them into specific pages, products, and your theme templates. This guide covers every option.

Note: The first three options on this page only work when you’re using the Document Library Pro Shopify app. If you bought Document Library Pro directly on this website without installing the Shopify app, then you can only use the embed code method.

Add your Documents page to your store menu

L'app crea una pagina predefinita chiamata Documents che elenca tutti i tuoi documenti. Per aggiungere un collegamento nel menu di navigazione del negozio:

  1. Nell'amministrazione Shopify, vai su Content → Menus.
  2. Apri il menu desiderato (ad esempio il menu principale) e fai clic su Add menu item.
  3. Nel Link , cerca e seleziona la Documents .
  4. Assegnagli un nome come “Documents” e fai clic su Save menu.
Selecting the Documents page when adding it to a Shopify store menu

La pagina Documents e una normale pagina Shopify, quindi hai il pieno controllo su di essa. In Online Store → Pages puoi rinominarla e aggiungere testo e immagini personalizzati sopra o sotto la libreria, ad esempio una breve introduzione. Se vuoi mostrare documenti solo su prodotti specifici e non hai bisogno di una pagina libreria centrale, puoi semplicemente eliminare la pagina Documents.

Editing the auto-created Documents page in the Shopify admin

Creating additional libraries

As well as your main Documents page, you can create additional libraries, each listing a different set of documents on its own library page. Do this via the Libraries section of the Document Library Pro admin.

For example, you might want multiple libraries in order to list different documents on different product pages, or to show different libraries on different parts of your store. Once you have created your extra libraries, use the methods below to add them to the relevant parts of your store.

Add a library to a product

To add a library to a product:

  1. Open the product you want to add a library to.
  2. Clicca More actions in alto a destra, poi Insert document library.
  3. Choose which library to add, then click Inserisci.
Opening Insert document library from the More actions menu in the Shopify product editor

The library is added to the product description and appears on your storefront straight away. There is nothing else to switch on.

Adding a library to a page? Use the embed code method below.

Quale libreria viene aggiunta: By default, this inserts a library that lists all of your documents. If you have created additional libraries, those also appear in the list for you to choose from.

Choosing which document library to insert into a Shopify product

Show a different library on each product

Puoi mostrare una libreria diversa su ogni prodotto. Inserisci la libreria desiderata su ciascun prodotto seguendo i passaggi descritti sopra. Ad esempio, puoi creare una libreria separata di schede tecniche per ogni prodotto e inserire quella corrispondente su ogni pagina prodotto.

Spostare la libreria all'interno della descrizione

La libreria viene sempre aggiunta alla fine della descrizione. Per spostarla altrove:

  1. Nell'editor della descrizione, fai clic sul pulsante vista codice (<>) nella barra degli strumenti.
  2. Trova il <iframe>...</iframe> , che si trova alla fine del codice.
  3. Taglia e incollalo dove vuoi che la libreria appaia tra i tuoi contenuti, poi salva.

Aggiunta del pannello Document library

Per aggiungere librerie di documenti ai prodotti più facilmente, puoi anche aggiungere un pannello Document library card alla schermata di modifica del prodotto, in modo da non dover aprire il menu More actions ogni volta. Ti consigliamo di blocco (l'icona a puntina sul pannello) in modo che appaia nella schermata di modifica di ogni prodotto, non solo di uno. Il pannello appare nel Blocchi sezione nella parte inferiore della schermata di modifica e Shopify mantiene le schede delle app in quella posizione, quindi non e possibile spostarla piu in alto nella pagina.

Scorri fino alla Blocchi section at the bottom of a product, click Aggiungi blocco, scegli Document library card, quindi aggiungila.

Adding the Document library card block in the Shopify product editor
The Document library card in the Shopify product editor with a library dropdown and Insert button

Add a library to a theme template

If you want to add a document library to a fixed spot in your theme rather than inside a product or page description (for example below the Add to cart button), you can add it as a theme block:

  1. Vai a Online Store → Themes e clicca Customize.
  2. Apri il template desiderato (ad esempio il template prodotto), fai clic su Aggiungi blocco nella sezione in cui vuoi la libreria e scegli libreria di documenti .
  3. It lists all of your documents by default. To show a specific library instead, pick one from the Library dropdown, then save.
Document Library Shopify App Theme Block

Poiche un blocco del tema e posizionato sul template, mostra la stesso library on every product or page that uses that template. To show a diversa su ogni prodotto, usa il metodo di inserimento descritto sopra, che aggiunge la libreria a quel singolo prodotto.

Use an embed code to add libraries anywhere

Ogni libreria ha un codice embed (un <iframe>). You can paste it anywhere you can add HTML. This is the method to use if you use Document Library Pro without the Shopify app, or if you want to place a library somewhere the steps above do not cover.

To get your embed code, first open the Pubblica Libreria page in your Document Library Pro dashboard and copy the embed code for the relevant library. (If you haven’t yet created the library you wish to embed, then you can do so on the Libraries page.)

    Embed document library into any websites with iframe code.

    Next, Paste the embed code into any of the following:

    • Descrizione prodotto: Open the product, click the code view button (<>) nella barra degli strumenti della descrizione e incolla il codice embed dove desideri.
    • Una pagina: Vai a Online Store → Pages, apri o crea una pagina, fai clic sul pulsante di visualizzazione del codice (<>) nella barra degli strumenti del contenuto e incolla il codice embed.
    • Una sezione del tema: In Online Store → Themes → Customize, aggiungi un Custom Liquid a una sezione e incolla il codice embed al suo interno.
    • Qualsiasi altro sito: The same embed code works on any website, not just Shopify.
    Pasting a document library embed code into the code view of a Shopify page

    Articoli correlati

    Pronto a raccogliere i tuoi documenti in una libreria con ricerca?

    Configura la tua prima libreria in pochi minuti - come plugin WordPress, incorporata su qualsiasi sito o come libreria ospitata tutta tua.

    Inizia gratis

    14 giorni gratis Annulla quando vuoi