Certified WordPress Developer and SEO Specialist with 10+ years of experience on Fiverr. I provide expert solutions for WordPress error fixing, debugging, speed optimization, and security hardening. Services include hacked site recovery, malware removal, on-page SEO optimization, and full customization to ensure your website runs fast, secure, and ranks higher on Google.
Looking for the best Black Friday and Cyber Monday deals on your favorite WordPress products?
The next few days are the perfect time to buy premium WordPress plugins, themes, web hosting, and tools to grow your business. As always, to help you find the best deals, we have created the ultimate listed of best WordPress Black Friday and Cyber Monday deals for 2021. Some of these are exclusive just for WPBeginner readers.
PDF format is good to use when you want your files to always have the same layout, no matter what device they’re viewed on. By embedding PDF files in WordPress, you can share your files while keeping visitors on your website.
In this article, we will show you how to add a PDF viewer in WordPress.
Why Do You Need a PDF Viewer in WordPress?
By default, WordPress doesn’t embed PDF files into blog posts as it does with audio, video, tweets, and other media formats. It just adds the file as a downloadable link.
That means your visitors will have to leave your post to view the PDF file. Many of these users don’t come back to your site, and this reduces your site’s pageviews as well as user engagement.
One way to deal with this is to offer PDF files as content upgrades. This way, you can ask users to join your email list to get the bonus content.
However, if you just want users to view PDF files without leaving your website, then you will need to add a PDF viewer to your WordPress site.
It uses JavaScript to embed files with a fully functional toolbar that allows users to zoom in and navigate the PDF file. It’s also fully responsive, so the embedded PDF will be viewable on any size screen.
Upon activation, you can visit Settings » PDF Embedder to configure the plugin settings. The default settings are suitable for most websites, so this step is optional.
The settings allow you to control the height and width of the PDF viewer. You can change this if you feel that the PDF viewer is too wide or narrow.
You can also choose whether to display the toolbar at the top or bottom of the viewer, and whether to hide it until the user hovers their mouse over the document.
The premium version adds options for a download button, continuous page scrolling, clickable links, and tracking file downloads. It also offers a number of mobile and security settings.
When you’ve finished customizing your settings, don’t forget to click on the ‘Save Changes’ button to store them.
Now we’re ready to embed a PDF in a WordPress post or page. The way you do that depends on whether you use the block editor or classic editor. You can use the links below to jump to your preferred section:
Adding PDF files to your WordPress posts and pages is quite simple. We’ll start by adding a new post or editing an existing one.
First, place your cursor where you want to embed the PDF document. Then you’ll need to add a new block by clicking the Add Block + button at the top left of the WordPress edit screen.
Next, you should click on the ‘PDF Embedder’ button under the Text section.
Once you’ve done that, you’ll need to upload a new PDF file to your post or select one from your media library. You can do that by clicking the link that says ‘Click here to Open Media Library to select PDF’.
You’ll be taken to the WordPress media library. If you haven’t already added the PDF, then do that now. Just drag the file into the library, and when you see the ‘Drop files to upload’ message you can let go of your mouse button.
The PDF will be automatically uploaded and selected. All you need to do is click the ‘Select’ button.
The PDF will be added to your document. You won’t see a preview of the PDF while you’re editing the post. Instead, the block contains the file’s URL.
To view the PDF, you’ll need to save your post and preview it on your live website. Here’s how it looks on our demo website.
How to Add a PDF Viewer in the Classic Editor
Embedding a PDF in the classic editor is just as easy. Start by adding a new post or opening the one you’re working on.
After that, you should place the cursor where you want to display the PDF, and then you need to drag the PDF onto the page. When you see the ‘Drop files to upload’ message you can let go of your mouse button.
The PDF will be automatically uploaded to your media library and selected. All you need to do now is click the ‘Insert into post’ button.
PDF Embedder will add a shortcode to your post or page. It will look like [pdf-embedder url="PDFURL"]. This will display the PDF when you preview or publish the file.
To view the PDF, simply save your post and preview it on your live website. Here’s how it appeared on our demo website.
Did you know that a higher click-through-rate on your SEO titles can help improve your SEO rankings?
Your title is the first thing that people will see in search engine results, and they’ll decide whether to click on your link based on that title. A headline analyzer helps you create engaging titles that get more clicks.
In this article, we’ll show you how to use a headline analyzer in WordPress to improve SEO titles.
What Is a Headline Analyzer Tool & Why Do You Need It?
The title of your blog post or landing page is extremely important for search engine optimization (SEO). A powerful title can get people to click on the link to visit your WordPress site.
Of course, the more people click on your search result, the more traffic you get. But a higher click-through rate (CTR) can also improve your search engines rankings as well, getting you even more visitors.
However, for beginners it can be tricky to come up with a headline that instantly captures your users’ attention and gets them to click your website link. This is where you can use the headline analyzer tool.
A headline analyzer is a tool that helps you evaluate your headlines and improve the copy to make it more engaging and click-worthy. It provides data-driven insights and suggestions for creating irresistible SEO titles.
That being said, let’s look at how you can use a headline analyzer tool to improve your SEO titles.
AIOSEO helps you optimize your website for search engines without any technical knowledge or the need to hire an SEO expert. The plugin offers a headline analyzer inside your WordPress editor so that you can create powerful titles.
Note: We’re using the AIOSEO Lite version as it includes the headline analyzer tool for WordPress. There is also a premium version that we use on WPBeginner site because it offers powerful features like local SEO, smart schema, XML sitemaps, and more.
The first thing you’ll need to do is install and activate the AIOSEO plugin on your website. If you need help, then you can follow our step-by-step guide on how to install a WordPress plugin.
Upon activation, the plugin will automatically launch its setup wizard. You can go ahead and click the ‘Let’s Get Started’ button to configure the AIOSEO plugin on your website.
After you’ve completed the setup wizard, go ahead and edit or add a new post. Once you’re in the WordPress editor, you can add your blog post title at the top.
An important thing to remember is that there is a difference between your post title and SEO title. The post title will simply appear on the page, usually in an <h1> heading tag, depending on your WordPress theme.
SEO plugins like AIOSEO allow you to add an SEO title for your articles using an HTML <title> tag.
The SEO title doesn’t appear on the page itself. Instead, it’s a suggestion to search engines like Google on how you’d like your title displayed in search results. It also displays in the browser’s title bar.
By default, WordPress doesn’t let you enter an SEO title. But with AIOSEO, you can easily add an SEO title.
To add the SEO title, simply scroll down to the ‘AIOSEO Settings’ meta box in your WordPress editor and then enter a headline under ‘Post Title.’
The plugin also offers smart tags, so you can automatically add information to your titles like the current year, author name, categories, site tagline, and more.
After adding a headline for your article, you can analyze it using AIOSEO. All you have to do is click the ‘SEO Headline Analyzer’ button at the top right.
AIOSEO will show you a score ranging from 1 to 100 about your headline. A score of 70 or more shows that you’ve written a powerful headline.
If your score is below 70, then don’t worry. The headline analyzer will show you suggestions on how to improve the score and make your title more engaging, so you can get more clicks and traffic.
Now you can scroll down and look at the word balance of your copy. The plugin will look for common words, uncommon words, emotional words, and power words.
These are words that help trigger a psychological or emotional response from your audience. When creating headlines, you can use such words to improve your headline score and boost their click-through rate (CTR).
Next you can check the sentiment of your headline. Titles that have a positive feeling tend to get better engagement and more clicks than neutral or negative ones.
Besides that, the plugin will also show you the headline type. For example, you can see whether your headline type is a how-to post, list post, resource post, or more.
These types of titles tend to get more clicks than generic titles.
After that, you can scroll down and check the character count and word count for your title in the headline analyzer tool.
It’s recommended to write headlines that are under 55 characters, so that search engines can fully show the text in the search results.
If your titles exceed 55 characters, then search engines might cut off the text at the end. This can lower your click-through rate if important words are cut off and the meaning of your title isn’t clear.
Next, you can analyze the beginning and ending 3 words of your headline. Most readers usually glance at the headline and look at the opening and ending 3 words in the title before deciding to click.
Using this information, you can place your target keyword and most important information in the beginning to capture the reader’s attention.
The AIOSEO headline analyzer also shows a preview of how your headline will appear in the search engine page results.
If your headline doesn’t get a good score, then you can easily try new headlines and analyze them before changing it.
All you have to do is switch to the ‘Try New Headline’ tab in the tool, enter your new headline, and click the ‘Analyze Headline’ button.
AIOSEO will show you a score of your new headline and compare it with the current SEO title.
You can try multiple headlines for your WordPress blog post and analyze their scores to see which one works the best.
Before you hit publish, check out our blog post optimization checklist to make sure it’s fully optimized to get the most traffic possible.
Pro Tips: Search Console + Headline Analyzer
You can take this even further like the Pros do, and combine the headline analyzer with the insights from Google Search Console.
If you look at our ultimate Google Search Console guide to grow traffic, you’ll see there is a section about finding low-hanging keywords where you can easily rank.
Then you can tweak the title of those blog posts using the headline analyzer to make it more catchy.
As your click-through rate increases, your SEO rankings will go up as well.