Tuesday, March 14, 2023

How to Show Before and After Photo in WordPress (with Slide Effect)

Do you want to show a before and after photo in WordPress?

A before and after photo allows you to show a side by side comparison of two images with minor differences. This is perfect for showing the impact of your products and services, or simply encouraging people to interact with your content.

In this article, we’ll show you how to add a before/after photo to your WordPress website with a slide effect.

How to show before and after photo in WordPress (with slide effect)

Why Show Before and After Photos in WordPress (with Slide Effect)?

A before-and-after image is an interactive picture that typically shows some kind of change.

Visitors can use a slider to switch between the different ‘versions’ of the image in an engaging and interactive way.

How to show before and after photo in WordPress (with slide effect)

If you run an online store using a plugin such as WooCommerce, then a before and after photo can show the effect of your products or services.

You simply need to show a ‘before’ photo that the customer can relate to, and a desirable ‘after’ photo. This will make shoppers want to buy the thing that takes them from the ‘before’ state to the ‘after’ state.

If you’re an affiliate marketer, then showing persuasive before and after photos on your website is a great way to promote your affiliate links, and get more sales.

Before and after photos can also encourage visitors to interact with your content. Dragging a slider to reveal the ‘after’ photo is an easy way to get more engagement, which can keep visitors on your site for longer. This can also help increase your pageviews and reduce bounce rate in WordPress.

With that being said, let’s see how you can create a before and after photo in WordPress using a slide effect. Simply use the quick links below to jump straight to the method you want to use.

Method 1. How to Show Before and After Photos Using a Free Plugin (Easy)

The easiest way to create before and after photos is by using the Ultimate Before After Image Slider & Gallery (BEA).

The BEA plugin allows you to create horizontal and vertical sliders, and customize the image with different labels and colors.

An example of a before and after slider in WordPress

The first thing you need to do is to install and activate the Ultimate Before After Image Slider & Gallery (BEA) plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, go to Before and After Slider » Add New in your dashboard.

To start, type in a name for the image slider. This is just for your reference so you can use anything that will help you identify it.

How to create a side by side comparison image in WordPress

With that done, you can add the ‘before’ image by scrolling to the ‘Before Image’ section.

Here, click on ‘Add or Upload Image’ and then either choose a picture from the WordPress media library or upload a new file from your computer.

How to add a before comparison image to a WordPress website

To help search engines understand this image and show it to the right people, it’s a good idea to add some image alt text. To do this, simply type into the ‘Image Alt’ field.

For more information about alt text, please see our beginner’s guide to image SEO.

Adding image alt text to a before and after image

With that done, scroll to the ‘After Image’ section.

You can now add the ‘after’ image by following the same process described above. Don’t forget to add some alt text to this image, too, since it’s important for WordPress SEO.

Adding an 'after' comparison image to a website or blog

You can also show some text below the image, by adding a title and a description.

For example, you might encourage visitors to interact with the slider. This is especially important for visitors who might have never run across a before-and-after photo before.

An example of a comparison image with a title and description

This is also an easy way to add some context to the image.

To add some text, simply type into the ‘Slider Title’ or ‘Slider Description’ fields.

Adding a description to a before and after image

You can also add a ‘Read More’ URL, which can link to any post or page on your WordPress website, or even an external website. For example, you might send visitors to a page where they can buy the product featured in the slider image.

This link will appear below the before/after image, and also beneath any slider title or description you’re using.

Adding a Read More link to a comparison image with a slide effect

To add a link, type the destination into the ‘Read More Link’ field.

You can then decide whether to open the link in the same tab, or in a new tab using the ‘Read More Link Target’ dropdown.

How to add a link to a Read More button

If you’re linking to another website, then we recommend choosing ‘New tab’ so you’re not sending visitors away from your WordPress blog.

With that done, you can choose whether you want to create a vertical or horizontal slider by clicking on one of the thumbnails in the ‘Orientation Style’ section.

Creating a vertical or horizontal slide effect in WordPress

After that, scroll to the top of the screen and click on ‘Options.’

Here, you’ll see the ‘Default offset’ is set 0.5. This means the visitor sees half of the ‘before’ image when the page first loads.

How to customize a before and after slider in WordPress

If you want to show more of the before image, then type in a bigger number such as 0.6, 0.7, or higher.

If you want to show the entire before image, then type in 1. This will place the slider at the top or right of the before image, as you can see in the following image.

Customizing a side by side comparison image with a slide effect

By default, the plugin shows ‘Before’ and ‘After’ labels when the visitor hovers their mouse over the image.

You may want to replace these labels with something more descriptive.

Adding custom labels to a before/after slider

To do this, simply go ahead and type into the ‘Before Label’ and ‘After Label’ fields.

By default, visitors will move the slider using drag and drop. Some people may find this difficult, especially if they have mobility issues or they’re using smaller devices like smartphones or tablets.

With that being said, you may want to change how visitors move the slider.

If you select the ‘Yes’ button next to ‘Move slider on mouse hover,’ then visitors can move the slider simply by hovering their mouse over the image.

Creating a custom slide effect on a before and after image

If you select the ‘Yes’ button next to ‘Click to move,’ then visitors can click anywhere on the image to move the slider to that point.

These settings can make it easier to interact with the before/after image, but it’s typically not the way that sliders behave. With that in mind, we recommend using these settings carefully.

Next, click on the ‘Style’ tab.

Changing the style of a slide effect on a website or blog

Here, you can change the colors used for the different labels, backgrounds, headings, descriptions, and the read more button. This can help the before/after image blend in with your WordPress theme, or even stand out from the rest of your website’s design.

You can also change the font size and text alignment.

When you’re happy with how the slider is set up, click on the ‘Publish’ button.

Publishing a before and after photo to your WordPress website

This creates a shortcode that allows you to add the before/after image and slider to any page, post, or widget-ready area.

For more information on how to place the shortcode, please see our guide on how to add a shortcode in WordPress.

Adding a slide effect to your WordPress images using shortcode

After adding the shortcode to your site, simply click on the ‘Publish’ or ‘Update’ button to make the before/after image and slider effect live.

Method 2. How to Show A Before and After Photo Using SeedProd (Advanced)

If you simply want to add a before and after image to a page or post, then the BEA plugin may be a good choice. However, if you’re using the image to promote a product, service, or business then we recommend using SeedProd.

SeedProd is the best drag-and-drop WordPress page builder. It comes with more than 180 ready-made templates that you can use to create high-converting landing pages, sales designs, and more.

SeedProd's ready-made templates

It also has a ready-made ‘Before After Toggle’ block that you can use to create beautiful before-and-after images your users can interact with.

Simply drag the block from the left-hand menu, and then drop it onto any page design that you may happen to be working on, including sales pages.

A before and after image created using SeedProd

If you’re using WooCommerce to sell your products, then SeedProd integrates with WooCommerce and even comes with special eCommerce blocks. This is perfect if you plan to use before and after images to promote your WooCommerce products.

Note: There is a free version of SeedProd that allows you to create custom pages no matter your budget. However, we’ll be using the premium version as it comes with the Before After Toggle block. It also integrates with many of the best email marketing services you may already be using on your website.

For information on how to use SeedProd, please see our guide on how to create a custom page in WordPress.

After creating a page, it’s easy to add a before and after image to your design. In the SeedProd page editor, simply find the ‘Before After Toggle’ block.

The SeedProd before and after toggle block

You can then drag and drop this block anywhere on your design, to add it to the page layout.

With that done, simply click to select the ‘Before After Toggle’ block. The left-hand menu will now update to show all the settings you can use to create your before-and-after image.

SeedProd's before and after toggle settings

To start, you’ll need to add the picture you want to use as the before image. Under ‘Before Image’ either click on ‘Use Your Own Image’ or ‘Use a Stock Image’ and choose the picture you want to use.

By default, SeedProd shows a ‘Before’ label above this image. However, you can change this to something more descriptive by typing it into the ‘Before Label’ field.

Creating a before and after image using a page builder plugin

With that done, scroll to the ‘After Image’ section.

You can now add an image and customize the default ‘After’ label by following the same process described above.

Adding an after image to a custom page layout

SeedProd can add a vertical or horizontal slide effect.

To switch between these two styles, scroll to the ‘Slider Orientation’ section and then click on either ‘Vertical’ or ‘Horizontal.’

A before and after image with a slider

By default, visitors will move between the before and after images by dragging the slider. However, some users may find it easier to move the slider by hovering their mouse over the image.

This is particularly true for larger images where the visitor would need to drag the slider a greater distance.

To try this setting, enable ‘Move on Hover’ in the left-hand menu.

Next, you may want to add a colored overlay to both the before and after images. This can help the image blend in with the rest of the color scheme, or stand out from the background.

You can even make the colored overlay semi-transparent, to create a more subtle effect.

To try different colors, click on the ‘Overlay Color’ section and then make your changes in the popup that appears.

Adding an overlay color to an interactive image using SeedProd

With that done, you can customize the slider handle by clicking to expand the ‘Comparison Handle’ section.

By default, SeedProd shows half of the ‘before’ image and half of the ‘after’ image. To change this, simply drag the ‘Handle Initial Offset’ slider.

Changing the initial offset on a before/after picture

To display less of the before image, drag the slider to the left so that it shows a lower number. To show more of the before image, drag the slider to the right, which increases the number.

Next, you can change the slider’s color using the ‘Handle Color’ settings.

How to customize a slider using SeedProd

You can also make the handle thicker or thinner using the ‘Handle Thickness’ slider.

In this way, you can make the handle stand out, or create a more subtle effect.

Changing the thickness of a slider using SeedProd

When you’re happy with the handle, you may want to change the circle. You can make the circle bigger or smaller using the ‘Circle Width’ settings, and change the ‘Circle Radius’ to create sharp or curved corners.

As you make changes, the live preview will update automatically so you can try different settings to see what looks the best.

Changing the width and radius of the slider circle

When you’re happy with the circle, you may want to change the size of the triangles inside that circle. For example, if you’ve made the circle bigger then you might want to increase the size of the triangles too.

To make this change, drag the ‘Triangle Size’ slider until you’re happy with how it looks.

How to customize a slider using a page builder plugin

With that done, you can continue adding new blocks and customizing the content on your SeedProd page.

When you’re happy with how the page looks, just click on the arrow next to the ‘Save’ button and then select ‘Publish.’

Publishing a before and after image using SeedProd

Now if you visit your website you’ll see your page design with the before-and after-image live.

We hope this article helped you learn how to add a before and after photo to your WordPress website with a slide effect. You can also go through our guide on the best social proof plugins for WordPress and how to choose the best web design software.

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 Show Before and After Photo in WordPress (with Slide Effect) first appeared on WPBeginner.


March 15, 2023 at 05:00AM

How to Automatically Add WordPress Products in Google Shopping

Do you want to add your WordPress products to Google Shopping?

Adding your online store products to Google Shopping can help you increase traffic, reach more customers, and generate greater revenue.

In this article, we’ll show you how to easily add WordPress products to Google Shopping.

How to Add WordPress Products in Google Shopping

Why Should You Add WordPress Products to Google Shopping

Google Shopping is a virtual marketplace like Amazon and Etsy, where users can search, view, and compare products from different online stores that have paid to advertise their products.

If you have a WooCommerce store, then adding your products to Google Shopping can prove to be extremely beneficial for your business.

Your products will be shown to all users browsing through Google shopping which will increase traffic on your WordPress website, generate more revenue and bring in more customers.

Google Shopping

That being said, let’s see how you can add WordPress products to Google Shopping.

How to Add WordPress Products in Google Shopping

Step 1: Creating a Google Merchant Account

To add your products to Google Shopping, you have to start by creating an account in the Google Merchant Center. This is the place where your product information will be stored for viewing by Google Shopping.

First, go to the Google Merchant Center page and click the ‘Sign up for free’ button.

Sign up for the Google Merchant account

After that, Google will ask you about your online business.

Just check the answers that apply to you, and then provide your website’s URL.

Provide the URL of your online store

After you’ve provided the details, you’ll be redirected to another page.

Here, you simply have to click the ‘Create a Google Merchant Account’ button at the bottom of the page.

Click the Create Google Merchant Account button

Now, you will be asked to provide your business details. You can start by writing your business name.

Next, select the country where your business is based from the dropdown menu below the ‘Registered Country’ option.

After that, click the ‘Continue to Merchant Center’ button.

Provide business details

You’ve successfully created your Google Merchant Account. Now all you have to do is provide your business info and shipping details.

Once you’ve filled in those details, simply click the ‘Save’ button at the bottom to store your settings.

Provide shipping and business details once a GMC account is created
Step 2: Linking Your Google AdWords Account

Now you’ll have to link your Google AdWords account to your Google Merchant Center account so that you can show your products via Google Shopping.

To link your account, simply go to the Google Merchant Center dashboard and click the gear icon at the top of the page.

Clicking it will open up a ‘Tools and Settings’ prompt. Here you simply have to choose the ‘Linked Account’ option present.

Click the Linked Accounts option from the Settings

This will take you to the ‘Linked Accounts’ page.

Now you simply have to click the ‘+’ button to create your Google Ads account.

Click the Plus button to create a Google Ads account

This will open up a ‘Create Your Google Ads Account’ prompt.

Simply choose your preferred time zone and currency and then click the ‘Create’ button.

Create a Google Ads account

You have now successfully created your Google Ads account.

This is how it will look once your account has been created.

GMC account has now been linked to the Google Ads account
Step 3: Adding WordPress Products to Google Shopping

To add your WordPress products to Google Shopping, we will be using the ELEX Google Shopping plugin to display your WooCommerce products in Google Shopping.

First, you need to do is install and activate the ELEX Google Shopping plugin. For more instructions, check our guide on how to install a WordPress plugin.

Upon activation, head over to the Google Shopping Feed » Create Feeds page from the WordPress admin sidebar.

From here, simply fill in your business details and click the ‘Continue’ button at the bottom.

Fill basic info on the Google Shopping Feed page

Next, you’ll be taken to the ‘Map Category’ page. Here you simply have to select your product categories.

Simply type your product categories in the ‘Google Categories’ tab and click ‘Continue’

Select Map Category

After that, you’ll be directed to the ‘Map Attributes’ page.

This is where you’ll have to fill in your product details including product id, product description, product link, pricing, image, and more.

Here select and fill in as many attributes as possible for more visibility in Google Shopping and click the ‘Continue’ button.

Map attributes

Now that you’re on the ‘Filtering Options’ page, simply fill in the details as required for your online store.

For example, you can include how many items you have in stock or note how many have sold already.

Next, simply click the ‘Generate Feed’ button at the bottom.

Click the Generate Feed button

After you’ve created your Google Shopping feed, go to the Google Shopping Feed » Manage Feeds page from the admin sidebar.

Here you will be able to view your Google Shopping Feed. Now you have to simply click the ‘Download’ button beside it.

Click the Download button

Once you’ve downloaded your feed as an XML file, go back to the ‘Google Merchant Center’ dashboard and click the Products » Feeds option from the sidebar.

This will open up the ‘Primary Feeds’ page where you have to click the ‘+’ button to add a new feed.

Click the plus button to create a feed

This will take you to the ‘New Primary Feed’ page where you can start by filling in basic details. First, start by adding all your target countries.

Next, select your preferred language and then click the ‘Continue’ button.

Fill in basic details

Then, you have to choose a name for your feed and select a method to connect your data to the Merchant center.

For this tutorial, we will be uploading the feed XML from WordPress.

After that, just click on the ‘Continue’ button.

Choose a name and method for uploading the feed

Now that you’re on the ‘Setup’ page, simply type the name for your Google Shopping Feed.

Next, just upload the Feed file you got from WordPress and click the ‘Create Feed’ button.

Upload file and click the Create Feed button

You have now successfully added your WordPress products to Google Shopping.

Bonus: How to Add Google Merchant Center Schema in WordPress

To improve your product search visibility in Google Shopping and increase conversion rates, you should add a Google Merchant schema in WordPress.

Schema markup is an HTML code that provides more details about your products to search engines.

A GMC listing schema will make your search snippets more prominent and will allow your products to be featured as popular products for the relevant search terms.

The easiest way to add a Google Merchant Center listing schema to WordPress is by using the All in One SEO for WordPress.

It is the best SEO plugin for WordPress that is used by over 3 million websites.

First, you need to install and activate the All in One SEO for WordPress. For more instructions, please see our guide on how to install a WordPress plugin.

Upon activation, a setup wizard will open up. Simply go ahead and click the ‘Get Started’ button.

All in One SEO setup

After that, you need to follow the onscreen instructions in the setup wizard to configure the plugin. If you need help, please see our guide on how to properly set up AIOSEO in WordPress.

After the AIOSEO plugin has been set up, you need to visit the Products » All Products page from the admin sidebar.

From here, simply click on the ‘Edit’ link below a product to open up the ‘Edit Product’ page.

Click the Edit link below the product name

Once there, you need to scroll down to the ‘AIOSEO Settings’ section and click on the ‘Schema’ tab.

Now, you need to make sure that the schema type is set to ‘Product’ by default.

If that is not the case, then simply click on the ‘Generate Schema’ button.

Click the Generate Schema button to add another schema

It will open up the Schema Catalog which will list all the available schema templates.

From here, you need to click the ‘Add Schema’ (+) button beside the Product option to set it as your primary schema.

Note: You may see the ‘Article’ schema already applied. If so, you can remove it as you add the new one because this particular page isn’t an article or blog post in Google’s eyes.

Click the Add Schema button next to the Product option

Next, you will need to fill in the product information to add the GMC listing schema.

For that, you need to click the ‘Edit Schema’ button next to the ‘Schema in Use’ option.

Click the Edit button next to the Schema in use option

This will open up the ‘Edit Product’ modal where you will need to fill in the product details.

If you’re using WooCommerce, then AIOSEO will automatically pull most of the product data from your product information.

However, if you want to fill in the information manually, you need to simply toggle the ‘Autogenerate Fields’ switch to ‘No.’

Toggle the Autogenerate fields switch to No

The product attributes that you will need to add include the product name, description, image, ISBN, price, material, color, shipping details, and more.

We recommend that you provide all the details so that the schema markup can make your product snippets more engaging.

Once you’re done, simply click the ‘Update Schema’ or ‘Add Schema’ button to store your settings.

Click the Update Schema button

You have now successfully added the Google Merchant Center listing schema to WordPress, and your products can now be featured on the platform and hopefully earn you more sales.

We hope you learned how to add WordPress products to Google Shopping. You may also want to check out our best WooCommerce reporting and analytics plugins and our article on how to speed up your eCommerce website.

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 Automatically Add WordPress Products in Google Shopping first appeared on WPBeginner.


March 14, 2023 at 02:32PM