Skip to content

How to Add a Like Button in Elementor (WP ULike Pro Widgets)

7 min read

Add a like button in Elementor with the WP ULike Pro Like Button widget

You built the page in Elementor and now you want a like button on it. A heart under a recipe, a thumbs up on a product card, a “did this help?” at the end of a guide. You don’t need a shortcode or a code snippet for that. WP ULike Pro adds its own Elementor widgets, so you drag the button in, pick a style and publish.

This guide shows how to add the button step by step, how to style it, and how to use the other widgets to show your most liked posts and your top fans. The screenshots are from a demo recipe site on Elementor 4.

The Elementor widget panel showing the WP ULike Pro category with seven widgets: Like Button, Like/Dislike Counter, Top Posts, Top Comments, Top Activities, Top Topics and Best Likers
The WP ULike Pro category in the Elementor panel, with all seven widgets.

What you need

  • WP ULike, the free plugin from WordPress.org.
  • WP ULike Pro with an active license. The Elementor widgets are part of Pro.
  • Elementor. The free version is enough. You only need Elementor Pro if you want to add the button to a Theme Builder template, like your single post layout.

Not using Elementor, or want a button on every post at once? Our main guide on how to add a like button to WordPress covers automatic display, blocks and shortcodes.

How to add a like button in Elementor

  1. Open the page or template in Elementor.
  2. In the widget panel, scroll to the WP ULike Pro category, or type “like” in the search box.
  3. Drag the Like Button widget to where you want it, for example under your post title or at the end of the content.
  4. In Content → General, pick a Template. Heart, thumbs up, emoji reactions, stars and 20+ more are in the list.
  5. Leave Display Counter on so visitors see how many people liked it, then click Publish.
Elementor editing the WP ULike Pro Like Button widget: Template set to Heart, Enable Custom ID on with Post ID 10, Display Counter on, and the heart button with 87 likes selected on the page
The Like Button settings. Here the button is tied to one recipe with a custom Post ID.

Which post does the button like?

By default the button likes the post it sits on. That is what you want on a single post template or a normal blog post.

On a landing page or the homepage it is different: the button is on the page, but you may want people to like a specific recipe, product or article. Turn on Enable Custom ID and enter that item’s Post ID. In the screenshot above, the button on the “Reader favorites” page counts likes for the tomato galette recipe, so the 87 likes match the ones on the recipe itself.

Show who liked it

Turn on Display Likers Box to show the avatars of people who liked the item. You can show them in a popover, a stacked pile, or the default list.

Style the button

Open the Style tab of the widget. You get three sections:

  • Icon: colors for the normal and liked state, a hover animation, size and rotation.
  • Counter: padding around the number.
  • Button: padding, margin, border radius, and the icon box width and height.

A good rule: keep the icon around the size of your body text and use your accent color for the liked state. The templates already look fine at their default size, so start there and only change what doesn’t match your site. If you want to see every style first, browse the button templates.

Show your most liked posts

The Top Posts widget turns your likes into a “Reader favorites” or “Most loved” section. Drag it onto the page and set:

  • Columns, and whether to show the thumbnail, title, date, author and votes.
  • Peroid Limit: all time, today, yesterday, this week, month, year or the last X days. “Last 30 days” keeps the list fresh.
  • Query: the post type and which items to include or exclude.
  • Display CTA Button: adds a like button to every card, with its own template.
A Reader favorites section built with the WP ULike Pro Top Posts widget: three recipe cards with photo, title, date, like and dislike counts and a heart like button showing 87, 82 and 78 likes
The Top Posts widget in three columns, with a like button on every card.

The list comes from the same likes you see in the Pro statistics, so there is nothing to sync.

Show your top fans

The Best Likers widget lists the people who like the most. It is a small thing, but regular readers love seeing their name there.

  • Number of users and the same Peroid Limit options as Top Posts.
  • Show or hide the name and the meta line (when they joined and how many likes they gave).
  • Profile URL type: link each name to the author page, a BuddyPress or Ultimate Member profile, or WP ULike Pro profiles.
  • Avatar size and radius in the Style tab.
A single Like Button widget with a 87 heart button next to a Top fans list from the Best Likers widget showing four members with avatars, join date and like counts
A Like Button for one recipe next to the Best Likers widget.

All 7 WP ULike Pro widgets for Elementor

WidgetWhat it showsGood for
Like ButtonA like (and optional dislike) button with 25+ templatesPosts, pages, products, landing pages
Like/Dislike CounterJust the number of likes or dislikes, with an iconCards, hero sections, “87 people loved this”
Top PostsYour most liked posts in a gridHomepage, sidebar, “Most loved” pages
Top CommentsThe most liked comments, by post typeBlogs and review sites with active comments
Best LikersThe members who like the mostCommunity pages and member areas
Top ActivitiesThe most liked BuddyPress activityBuddyPress communities
Top TopicsThe most liked bbPress topicsForums

Top Posts, Top Comments, Top Activities and Top Topics all have pagination, so you can build a full “Popular” page, not just a short list.

No Pro yet? Use the shortcode

The free plugin has no Elementor widgets, but it works with Elementor’s own Shortcode widget. Drag it in and paste [wp_ulike]. You get the free like button for the current post. You can’t pick templates or styles from the panel, and there are no Top Posts or Best Likers widgets, but it’s a fine way to start.

The full list of differences is in our free vs Pro comparison.

If something doesn’t look right

  • You don’t see the widgets. Check that WP ULike and WP ULike Pro are both active and the license is active. Then look for the WP ULike Pro category. If you search for “ulike” you may only find “WP Ulike Widget”: that is the classic sidebar widget, not the Elementor one.
  • The button likes the wrong item. On landing pages and the homepage, turn on Enable Custom ID and enter the Post ID.
  • Top Posts is empty. The period may be too short. Try “All”, or turn on Enable Normal Query in the Query section to also show posts with no likes yet.
  • You want the button on every post, not just one page. Use Display Automation for site-wide rules, and keep the widget for special pages.

Still stuck? Contact support and we’ll help you sort it out.

Frequently asked questions

How do I add a like button in Elementor?

Install WP ULike and WP ULike Pro, open your page in Elementor, drag the Like Button widget from the WP ULike Pro category, pick a template and publish.

Are the WP ULike Elementor widgets free?

No. The seven Elementor widgets are part of WP ULike Pro. With the free plugin you can still add a button in Elementor with the Shortcode widget and [wp_ulike].

Do I need Elementor Pro?

No. The widgets work with free Elementor. You only need Elementor Pro to put the button in a Theme Builder template, such as your single post layout.

Can I add a like button for a different post than the page I’m on?

Yes. In the Like Button widget, turn on Enable Custom ID and enter the Post ID of the item you want people to like.

Does it work with WooCommerce products?

Yes. Products are posts in WordPress, so you can add the Like Button to a product template or tie it to a product with a custom Post ID.

Can I show the most liked posts in Elementor?

Yes. The Top Posts widget shows your most liked posts in a grid, for all time or a period like the last 30 days, with an optional like button on each card.

See Pro plans · Browse templates · Documentation

Enjoyed this article?

Get more WordPress tips like this in our monthly newsletter: updates, guides, and product news.

2 responses

  1. Anwar Avatar
    Anwar

    Is your plugin no longer working with Elementor??? I just installed it, and it isn’t being detected! I’m using the latest version of Elementor and the Elementor theme on WordPress.

    Alimir
    1. Alimir Avatar

      Hey Anwar,
      Our Elementor widgets are only available in the pro version.

      Alimir

Leave a Reply

Your email address will not be published. Required fields are marked *