How to create a working button in layers

Asked on July 30, 2015 in How To.

Hello, I’m locally creating a site for my application and i don’t know how to load a pdf file on it and then how to create a button which redirects the user to the page where the file is stored.

beginnersecondo Layers User
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on August 24, 2015. Best answer


    WordPress will let you upload a PDF just like an image using the media manager. If you import it to the post, it will create a link, or you can link it yourself using a button or icon or whatever you like.

    There areplugins that will let you embed PDFs in the page so it displays inside your theme and from there the visitor can choose to full-screen it (best option)

    Here is one tutorial from WPBeginner that explains in more detail:

    If you want to do something like have a page that holds the title and featured image, but then opens a PDF when the page permaink is clicked anywhere on your site, you need a plugin like Page Links To to create the redirect by adding a custom URL to the PDF file from the page. That custom url essentially replaces the page’s permalink everywhere.

    Buttons are created with the button element in HTML, or with the button class in a link. For styling options, see our button page in the framework reference here:


    <a class="button" href="link"> Link Text </a>
    Vail Joy Layers Team