PDF Download Buttons

How to add PDF Download buttons to your site

In order for users to be able to download PDF catalogs from your site you need to add Download buttons on your site. These can either send a full store catalog download or a single-category catalog. There are two ways of adding the buttons, using the PDF Catalog widget or using the PDFCatalog shortcode.

Widget

The quickest way to add download buttons to your site is to use the Widget. Head to Appearance -> Widgets page in your WordPress admin panel. Once you have our plugin installed you will see an extra option under Available Widgets titled PDF Catalog Download Button. Drag and drop it on one of your side bars on the right to activate it. From the same page you can change Widget settings which allows you to pick which buttons to show and their titles.

Shortcode

Using the PDF Catalog short code you can insert PDF download buttons in any Post or Page (or even product description) on your site. It is also much more flexible, offering more customization options than the widget. Here are some examples of the short code tags which you can customize accordingly:

Example Tag Description
[pdfcatalog] Will render a button with title ‘Download Catalog’ which will link to your store’s complete
PDF
catalog.
[pdfcatalog]Download our store catalog in PDF[/pdfcatalog] Will render a button with title ‘Download our store catalog in PDF’ which will link to your
store’s
complete PDF catalog.
[pdfcatalog slug=”hoodies”]Download HOODIES Catalog[/pdfcatalog] Will render a button with title ‘Download HOODIES Catalog’ which will link to the Hoodies
category
catalog.
[pdfcatalog slug=”hoodies” template=”basiclist”]Download HOODIES Catalog[/pdfcatalog] Will render a button with title ‘Download HOODIES Catalog’ which will link to the Hoodies
category catalog. By using the template attribute, it will override the template chosen in
the plugin’s settings.
[pdfcatalog catid=”10″]Download %name% Catalog[/pdfcatalog] The title of this button contains the variable %name% which will be replaced by the name of
product
category with ID 10. It will also be linked to the same category’s PDF Catalog. You may also
use the word ‘current’ as an ID, the plugin will attempt to automatically detect which
category is being accessed and create a button for it.
[pdfcatalog catid=”10″ class=”mybutton”]Download %name% Catalog[/pdfcatalog] The same as above but the button will also receive the CSS class mybutton. You can
use this
method to customize the look of individual buttons.
[pdfcatalog catid=”17″ children=”true”]Download PDF catalog for category and its
children[/pdfcatalog]
This shortcode generate a button which creates a single PDF containing the specified
category
followed by its child categories (if they exist)
[pdfcatalog catids=”17,20,30,8″]Download PDF catalog for these cool
categories[/pdfcatalog]
This shortcode generate a button which creates a single PDF containing all the categories
specified
by the catids attribute. Only the specified categories will be included (their
child
categories will be ignored).
[pdfcatalog template=”basiclist”]Download PDF catalog with Basic List as template[/pdfcatalog] Adding the template option overrides the template selected in the plugin’s settings and uses
the one specified here. The template name should match the folder name of the template.