• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Smooth Stuff

Guaranteed 100% Greed Free

  • Home
  • Got Questions?
  • What People Say
  • Tutorial Update
  • Contact
  • Blog
You are here: Home / WordPress 101 - The Basics / Adding PDF to a sidebar

Adding PDF to a sidebar

It’s really simple, as you know, to add a .pdf to your site.

Usually it’s added into a post/page and, using the Add Media button, the pdf is added to that post/page.

You can put the whole post/page complete with the pdf in your sidebar or just use the pdf itself. Let’s put a .pdf in a Text widget.

Upload the .pdf to your Media Library

pdf-in-media-library

Now edit

edit-the-pdf-attachment

Look over to the right. What you want is the FILE URL

file-url

Now copy that file url. Drag your mouse along that url, highlighting until you reach the end (hint : it’s going to end in .pdf)

Navigate to Widgets and drag a text widget into your primary sidebar.

Inside that text widget you’re going to paste the url of the .pdf

To show you the next 2 steps I’m using my notepad. Because of the size of my notepad window, the text will display on more than one line. Pay no attention to the size of the lines.

This is the url of the file

file-url-2

To make that file accessible, you have to write some elementary code around it, like this

file-url-3

Note 1. : the words target=”_blank” makes the link open in a new window

Note 2. : Text is written to give that link a name.

Your .pdf is now showing in your sidebar

Primary Sidebar

I acknowledge the Boon Wurrung people of the Koolin nation as the Traditional Custodians of this land

About me

My personal info

Anything is possible. Have a friendly and obligation free chat with me today

Get in touch

I donate 10% of my income to continue the work of Fred Hollows

My Personal Stuff

Senior at Large in a Sicilian Kitchen
Vladimir, Feline Extraordinaire

Copyright © 2021 · Kreativ Pro On Genesis Framework · WordPress · Log in