Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

How to Add Envira Galleries with WordPress Shortcodes

Last updated on Jul 17, 2019 by Brenda Barron

Did you know there are plenty of reasons why photographers love using WordPress to build their websites?

Not only is WordPress the most popular content management platform online today, but it’s also one of the most flexible and customizable solutions. With a little bit of know-how and some expert guidance, you can accomplish virtually anything with your WordPress site.

As an open-source platform, WordPress allows users to edit it however they like. Unfortunately, if you’re a photographer and not a developer, you might not know how to code an entire website. The good news is that with WordPress shortcodes, you can accomplish incredible things, with very little developer know-how.

Have you ever wondered how to add an Envira gallery shortcode to your WP site?

Well, you’re about to find out. Today, we’re going to look at:

  • What WordPress shortcodes are
  • How you can enable shortcodes on Envira
  • How to create an Envira gallery shortcode

What Are WordPress Shortcodes?

Before we start exploring things like the Envira Gallery shortcode, it’s worth explaining what WordPress shortcodes are, and what they do.

A shortcode is a small piece of code. Usually, you can identify this code by brackets that look like [this]. Shortcodes perform dedicated functions on your site. For instance, if you used the Envira Gallery Shortcode on a blog page, it would bring up a gallery within your blog.

You can place shortcodes virtually anywhere on a WordPress website. Behind the scenes, the shortcode tells WordPress to execute a longer section of code within one of your website’s files. This makes it much easier to add complex content to pages on your site.

A close-up of the short code area for a newly created gallery made with Envira Gallery

How to Enable Shortcodes with Envira

To start using the Envira gallery shortcodes, you’ll need to “enable” shortcodes within the plugin. To do this, visit this web-page for a step-by-step guide.

Remember, you’ll need to create a plugin file, and it will need to be a plain text document. Notepad is a good option for this. You’ll also need to use the code envira-gallery-allow-shortcodes.php to enable your shortcodes. This file can then be uploaded directly into your /plugins collection.

Remember to go to the Plugins section of your WordPress website after following the steps to enable shortcodes in Envira. This is where you’ll activate the plugin that allows shortcodes to appear in your Envira galleries.

Creating Envira Gallery Shortcodes

Creating an Envira gallery shortcode to add to other pages and content is easier than you think. Start by heading to your Envira Gallery admin section and clicking the Add New button. This where you’ll start building a blank gallery from scratch.

The 'Add New' button on Envira Gallery

Follow the same steps you would for any Envira gallery. This means that you’ll need to:

  • Give your gallery a title (So you can find it easily)
  • Upload images to your gallery from your computer or other sources
  • Edit your image metadata, including the image title and alt text. This will help with your SEO efforts.
  • Configuring your gallery: You can adjust everything from your WooCommerce settings to your lightbox strategy through Envira.

Once you’ve perfected every aspect of your Envira gallery, publish it like you normally would, or hit “Update.” This will bring up a section on the right side of your screen titled Envira Code.

In this section of the page, you’ll receive two separate shortcodes. One uses the page slug for the gallery, and the other uses the gallery ID. You can use your shortcodes to add your gallery on pages, custom posts, and blogs using the shortcode.

The Easiest Options for “Adding Galleries” On Envira

Envira Gallery makes creating WordPress shortcodes for your content incredibly simple.

However, if you’d prefer not to use shortcodes at all, you won’t have to. When you create a new post or page on WordPress with Envira Gallery installed, you’ll notice an Add Gallery button on the page.

This button allows you to automatically find your Gallery and add it into your post however you like. Choosing a gallery from the available selection will directly embed the shortcode into your post. You can also insert galleries into pages by simply remembering the gallery page slug or page ID.

The Envira Add Gallery button on a new WordPress page

There you have it! The simple guide to using Envira gallery shortcodes on your WP pages. To find out more about optimizing your online presence with Envira, don’t forget to follow us on Facebook and Twitter!

Using WordPress and want to get Envira Gallery free?

Envira Gallery helps photographers create beautiful photo and video galleries in just a few clicks so that they can showcase and sell their work.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.