Wednesday, January 19, 2022

How to Add Tooltips in Your WordPress Posts and Pages

Do you want to add tooltips in your WordPress posts and pages?

Tooltips are additional pieces of information that show when your mouse hovers over certain words. It’s a helpful way to clarify your content.

In this article, we’ll show you how to add WordPress tooltips in your posts and pages.

Add tooltips to your WordPress posts and pages

Why Display Tooltips in Your WordPress Posts and Pages?

Tooltips display useful information in small boxes that pop up when you hover over an area on your WordPress site. They’re a great way to add clarity to your content.

You can use tooltips to add definitions of difficult words, highlight important facts, and reveal the sources of your information. Like footnotes, they can improve user experience and help build trust with your visitors.

However, tooltips should never be used for essential information. Your post should contain everything your readers need even if they don’t read the tooltip, just in case they don’t see them. You should also make sure you do not overuse tooltips, or they can become a distraction to your website visitors.

That being said, let’s look at how you can add tooltips to your WordPress posts and pages.

How to Add Tooltips in Your WordPress Posts and Pages

The first thing you need to do is install and activate the WordPress Tooltips plugin. To learn more, see our step by step guide on how to install a WordPress plugin.

Once the plugin is activated, there are several ways to add tooltips to your posts and pages. The first is to automatically add tooltips to certain keywords.

Adding Tooltips to Keywords Automatically

All you have to do is navigate to Tooltips » Add New to create a new tooltip. You need to start by adding a title.

This title is a keyword, and the tooltip will be automatically be displayed everywhere the keyword appears in your posts and pages. This can save you a lot of time, since you don’t need to add the tooltip in multiple locations throughout your website.

If you would like other words to also display the tooltip, then you can enter them in the synonyms section on the right of the screen. If you enter multiple synonyms, then they should be separated by the pipe symbol |.

Add a New Tooltip

Now, in the content section, add your tooltip. A tooltip might be only a few words long, or it could be several paragraphs of rich content with images and other media. However, keep in mind that you are writing content for a tooltip, not a full post, so keep it as brief as possible so it’s easily readable on any screen.

Once you’ve finished, you should click the ‘Publish’ button on the right of the screen. Now tooltips will be automatically displayed on your posts and pages wherever the tooltip’s title and synonyms are found.

Preview of Tooltip Automatically Added to a Keyword

Adding Tooltips Using Shortcode

Another way to add tooltips is to add a shortcode to the content of your posts and pages. This method is suitable for shorter tooltips, or when you want to display the tooltip just once instead of on every matching keyword on your website.

If you’re new to shortcodes, then you can learn more in our beginner’s guide on how to add a shortcode in WordPress.

To add your tooltip shortcode, first you need to create or edit the post or page where you wish to add the tooltip. Then you should add this shortcode where you wish the tooltip to be displayed:

[tooltips keyword="YOURKEYWORD" content="YOURTOOLTIPCONTENT"]

Simply replace YOURKEYWORD with the word or phrase you want to add the tooltip to, and replace YOURTOOLTIPCONTENT with the text you want to add to the tooltip. Be sure to leave the quotes in the shortcode so that it works properly.

Adding a Tooltip Using Shortcode

You can preview the page to see the tooltip in action.

This is how it appears on our demo site.

Preview Tooltip Added Using Shortcode

Building a Glossary From Your Tooltips

Each tooltip is a description of a keyword, similar to what you would find in a dictionary or glossary. As you go on adding tooltips, it is as if you are building a basic glossary.

This is why the WordPress Tooltips plugin allows you to display a glossary of tooltips on your website. Simply add the [glossary] shortcode to the post or page where you want the glossary to appear.

Adding the Glossary Shortcode

After you have published the post or page, you can visit your website to see the glossary.

This is how it appears on our demo site. It includes the tooltips we added to the plugin’s tooltips list, but not the tooltips we created using shortcode.

Preview of Tooltip Glossary

If you want to customize the glossary, then you can do so from the Tooltips » Glossary Settings menu in your WordPress dashboard. Here you will find a number of options you can tweak on how the glossary will be displayed and what will be included.

Tooltip Glossary Settings

For example, you can choose whether or not to display images in the glossary, and you can list the ID of any tooltips you don’t want to include.

We hope this tutorial helped you learn how to add tooltips to your WordPress posts and pages. You may also want to see our guide on how to create an email newsletter, or our expert comparison of the best free website hosting.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Tooltips in Your WordPress Posts and Pages first appeared on WPBeginner.


January 19, 2022 at 04:01PM

Tuesday, January 18, 2022

How to Add PDF Indexing and Searching in WordPress

Do you want to make the PDFs on your WordPress website searchable?

WordPress allows you to upload PDF files to your media library, but doesn’t include their contents in search results.

In this article, we’ll show you how to add PDF indexing and searching in WordPress.

How to Add PDF Indexing and Searching in WordPress

Why Add PDFs to Your WordPress Search Results?

PDFs are a great way to offer your visitors ebooks, user manuals, catalogs, and more. You can learn more in our guides on how to upload PDF files to your WordPress site, and how to add a PDF viewer in WordPress.

However, WordPress site search is quite limited and will only search the contents of the WordPress database.

This means that if your visitors use the search bar on your website, only the title and description of your PDFs and other documents will be included in the search results, not their contents.

As a result, your visitors may be missing out on valuable information.

The good news is that you can use a custom search plugin to improve the default WordPress search experience. If your PDFs are unencrypted, then the right search plugin will index the contents and metadata of your PDFs and add them to your search results.

With that being said, let’s take a look at how to add PDF indexing and searching in WordPress.

Adding PDFs to Your WordPress Search Results

The first thing you need to do is install the SearchWP plugin. For more details, see our step by step guide on how to install a WordPress plugin.

SearchWP is one of the best premium search plugins for WordPress. It’s easy to use and lets you search the contents of PDFs and other files in your WordPress media library.

Upon activation, you will need to visit the Settings » SearchWP page and then click on the ‘License’ menu tab.

Enter Your SearchWP License Key

Here you need to enter your license key in the ‘License’ box. You can find this information in your account on the SearchWP site. Once you’re done, make sure to click the ‘Activate’ button.

The next step is to add the contents of your PDF documents to the WordPress search results. To do that, you need to click on the SearchWP ‘Engines’ menu tab. This brings you to a screen where you can determine what is included in your WordPress search results.

SearchWP Engines Let You Customize WordPress Search

You’ll notice that by default, posts, pages and media files will be included in the search results.

If the ‘Media’ section is missing, then you will need to add it by clicking the ‘Sources & Settings’ button then clicking the ‘Media’ checkbox.

Make Sure the Media Box Is Checked

Don’t forget to click the ‘Done’ button to store the new settings.

You can adjust your search engine settings by clicking on the ‘Posts’, ‘Pages’, ‘Media’, or other available drop downs. To make sure that PDFs are included in the search results, you will need to configure the Media settings by clicking the ‘Add/Remove Attributes’ button in that section.

Click Add/Remove Attributes in the Media Section

Make sure that the ‘Document Content’ box is checked.

This means that the contents of your PDFs, Microsoft Office files, text files, and other documents in your WordPress media library will be indexed and included in search results.

Check the Document Content and PDF Metadata Boxes

You should also check the ‘PDF Metadata’ box. This will index PDF metadata that isn’t part of the file’s contents. Depending on the PDF file, this may include the document title, author, subject, keywords, and more.

Make sure you click the ‘Done’ button when both of these boxes are checked.

Next, you need to decide how much weight to give to PDF content and metadata in the search results. In other words, how high do you want PDFs to appear in your site’s search results?

By default, the sliders for Document Contents and PDF Metadata are all the way to the left, so they will not be given much weight. If you want them to appear higher in the search results, then you can move the slider to the middle or right positions.

Decide How Much Weight to Give Document Contents and PDF Metadata

Finally, you need to click the ‘Save Engines’ button at the top right of the screen to save your new search settings.

If you’re then shown the message ‘The index needs to be rebuilt’, then you should click the ‘Rebuild Index’ button so that the PDF content and metadata are added to the search index.

Rebuild the Index if Prompted

Congratulations! Your WordPress website can now index and search PDF files.

Next, you may like to enable some advanced settings that will make it easier for your users to find what they are looking for.

To do that, you should navigate to Settings » SearchWP and click on the ‘Advanced’ tab.

SearchWP Advanced Settings

You can now activate any of these options that you would like:

  • Partial matches will also display results that don’t quite match the term that is being searched for.
  • Automatic ‘Did you mean?’ corrections will suggest a slightly different search term that will match some posts on your website.
  • Support ‘quoted/phrase searches’ will allow your users to use quotes when searching for exact phases.
  • Highlight terms in results will make it easier to find what they are looking for in the search results.

Now when your website visitors search for a word or phrase, all relevant PDF files will be included in the search results.

PDF Search Preview

We hope this tutorial helped you learn how to add PDF indexing and searching in WordPress. You may also want to learn how to create a WordPress membership site, or check out list of must have plugins to grow your site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add PDF Indexing and Searching in WordPress first appeared on WPBeginner.


January 18, 2022 at 04:00PM

Monday, January 17, 2022

How to Save Changes Without Publishing in WordPress

Do you want to save changes on a WordPress post or page without publishing?

Sometimes you may need to edit a post or page that’s been published already, but you don’t want to publish those changes right away.

In this article, we’ll show you how to save your changes in WordPress without publishing. 

How to save changes without publishing in WordPress (2 ways)

Why Save Changes Without Publishing WordPress Posts and Pages?

WordPress makes it incredibly easy to add new blog posts and pages.

However, if you update a post or page that’s already live, then it will immediately overwrite the content that’s already there.

What if you want to draft an update, and save that draft without publishing it? This can be useful if you need more time to edit your draft, or if you’re running a multi-author blog and want to approve any changes before they go live.

The only default way to do this is to switch it back to a draft and then republish the content again when the changes are ready. But when you switch a published post to a draft, it creates a 404 error which can hurt your SEO.

An alternative is to simply create a new draft and copy and paste the content, but this doesn’t transfer over the categories and tags, your featured image, and more.

Luckily, you can use a WordPress plugin to create a cloned version of any page or post on your WordPress website and save the draft without making it live. Then when you’re ready, you can merge the changes and update the published post.

This is useful when you’re redesigning a website, copying landing pages, rewriting old content, making edits, and more.  

That being said, let’s show you how to save your changes in WordPress without publishing.

Saving Changes Without Publishing in WordPress

The easiest way to save changes without publishing them live is by using the Duplicate Post plugin.

This plugin temporarily duplicates any page or post in WordPress with a single click, including all of the original settings. Then, when you’re ready, you can merge your changes and update the original post.

First thing you need to do is install and activate the plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, navigate to Posts » All Posts in your WordPress admin panel.

Then, hover over a post, and you’ll notice the plugin adds three new options, ‘Clone’, ‘New Draft’, and ‘Rewrite & Republish’.

Duplicate Post new plugin options

First, you can click the ‘Rewrite & Republish’ link.

This will automatically create a duplicate version of the post and open it in the post editor screen.

You can make as many changes as you want to this post and save it without publishing live. To save the post, simply click the ‘Save’ link in the right hand corner of the page. It will also save automatically as you make changes.

Save republished version

The post will also get saved as a draft in your WordPress post dashboard that you can access later on.

It will say, ‘Draft, Rewrite & Republish’ next to the post name.

Republished post in post dashboard

When you are ready to publish, click the ‘Republish’ button.

It will ask you if you are ready to republish the post and merge your new changes to the live post. If you are ready, then click the ‘Republish’ button again.

If you want to review your changes, then click the ‘Save changes and compare’ button.

Click republish button

This brings up a side-by-side revision screen where you can see the changes made with the differences highlighted in green.

If you are happy with the changes, then click the ‘Return to editor’ link at the top of the screen.

View saved changes

You can also change the date when you want your edited post to go live. If you want the changes to publish instantly, then don’t change the date.

If you want to publish in the future, then simply click the ‘Republish:’ option and change the date to a time in the future.

Change republish date

Then, click the ‘Republish’ button again.

You’ll get a notification at the top of the page that says the original post has been replaced with the rewritten post.

Republish post message

Now, the changes you made to the cloned post will replace the original version of the post on that date.

We hope this article helped you learn how to save changes without publishing in WordPress. You may also want to see our detailed guide on why WordPress is free and our picks of the best business phone services for small businesses.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Save Changes Without Publishing in WordPress first appeared on WPBeginner.


January 17, 2022 at 05:00PM