November 15, 2023

Add an Elementor Sales Badge to Your Product Loop Grids with ACF

Play Video

Creating engaging product displays in Elementor is essential for driving sales. One effective way to highlight special offers is by adding a sales badge to product loops. This tutorial will guide you through the process of adding an Elementor sales badge to your product loops.

Add an Elementor Sales Badge to Your Product Loop Grids with ACF Preview


Prerequisites

Please ensure you have the following installed and activated:


Creating a Custom Field for Sales Badge

  1. Navigate to ACF > Field Groups > Add Field Group.
    Navigate to ACF > Field Groups > Add Field Group
  2. Name your field group (e.g., “Sales Badge”).
    Name your field group (e.g., "Sales Badge")
  3. Set the field type to ‘Text’.
    Set the field type to 'Text'
  4. Add a new field with the label “Sales Badge” (Field name: sales_badge).
    Add a new field with the label "Sales Badge" (Field name: sales_badge)
  5. Define the Location Rules to target ‘Post Type’ is equal to ‘Product’.
    Define the Location Rules to target 'Post Type' is equal to 'Product'

Adding Sales Badge Information to Products

  1. Go to Products > All Products.
  2. Select a product to edit.
    Select a product to edit
  3. Enter the sales badge text (e.g., “On Sale”) in the custom field and update the product.
    Enter the sales badge text (e.g., "On Sale") in the custom field

    Tip: Leave the field blank to bot display the sales badge.

Integrating the Sales Badge into Elementor

  1. Open your Elementor template where the product loop is located.
    Open your Elementor template where the product loop is located
  2. Drag a Heading widget to the desired location in the loop layout.
    Drag a Heading widget to the desired location in the loop layout
  3. Set the Heading widget’s content to Dynamic, choose the ACF Field, and select the ‘Sales Badge’ field as key.
    Set the Heading widget's content to Dynamic, choose the ACF Field, and select the 'Sales Badge' field as key
  4. Change the HTML tag to a “span” or “div” (as it should not be treated as a headline for SEO purposes).
    Change the HTML tag to a "span" or "div"
  5. Customize the heading widget’s style to make it stand out, such as changing its color, size, or adding a background.

Fine-Tuning the Badge Position and Style

  1. Adjust the Heading widget’s position, ideally setting it to absolute for overlaying on product images.
    Adjust the Heading widget's position
  2. Play around with margins and padding for better positioning.
    Play around with margins and padding for better positioning
  3. Customize the appearance further, like adjusting the border radius for a tag-like effect.

Optional Enhancements

  • Consider adding conditional logic, depending on the tool you use. For example, display the badge only when a product is actually on sale.
  • Explore other plugins or custom code to automate the display of sales badges based on certain conditions.

Additional Links


Elementor Sales Badge – Conclusion

Adding a sales badge to your product loops in Elementor is a straightforward process that can significantly enhance the visual appeal of your online store. By following these steps, you’ll be able to highlight special offers effectively and potentially increase your sales. Experiment with different styles and positions to create a look that resonates with your brand and catches your customers’ attention.

Required Resources

WooCommerce Logo
Free Options
Elementor Logo
Free Options
Credit to Jeffrey at Lytbox
Jeffrey's Lytbox Studio is a YouTube channel dedicated to empowering aspiring website creators by offering web design tutorials, insights into the business side of web design, and fostering creativity and skill development. With a strong focus on Elementor, Jeffrey shares his journey from a techno-dinosaur to a successful freelancer and design studio owner, aiming to inspire and educate others in their quest for freedom and purpose through the world of web design.
Visit
Add an Elementor Sales Badge to Your Product Loop Grids with ACF
Welcome back!
Enter your Helwp credentials to sign in.

No Account yet? Sign Up

My Account
Menu
Give Feedback
Describe your feedback *
Rate Helwp
Share
Facebook
Twitter
LinkedIn
Reddit
Email
WhatsApp
Telegram
Pocket
Report
Problem *
Describe the problem
Want us to reply?
Your E-Mail
Affiliate Disclosure

At Helwp, we’re committed to transparency and honesty. Therefore, we want to inform you that some of the links on our website are affiliate links. This means that, at no additional cost to you, we may earn a small commission if you click through and make a purchase.

We only promote products or services that we genuinely believe in. These affiliate commissions help us to maintain the website and continue to provide you with free, high-quality WordPress content.

If you are interested in how you can support us even further, check out our support page.