How I Updated 2,000+ Elementor Buttons in WordPress

How I Updated 2,000+ Elementor Buttons in WordPress

Hey everyone! I’m mostly writing this mini-post as a note to myself, so I don’t forget exactly “how the heck I did this.”

Recently, I ran into what seemed like a simple task:

  • There’s a WordPress site with over 2,000 pages.
  • All the pages were built with Elementor (don’t ask—it wasn’t my choice).
  • Each page has a button that leads to a form.
  • I needed to update the button’s link on every single page.

At first glance, you’d think: “Easy, just change the button link.” But nope! Turns out each page has a separate button (rather than one reusable element). And the link isn’t pulled from a variable, either—it’s literally a hard-coded link in every instance.

So, plan B: I figured I’d jump into phpMyAdmin and do a quick SQL query. Except with Elementor, I couldn’t find the link through a normal search (I have no idea why).

Here’s what ended up working:

  1. Install the Better Search Replace plugin (the free version is enough).
  2. Select the wp_postmeta table (that’s where Elementor stores its data).
  3. Search for the exact string you want to replace (for example, en.skazoff.com/same-post). In my case, it only worked if I escaped the URL, like en.skazoff.com\\/same-post.
  4. Enter the new link you want to replace it with.
  5. Do a “dry run” to see the results.
  6. If everything looks good, apply the changes for real.

And that’s it! Honestly, it took me a while to figure out, because people mention this plugin but often forget about the need to escape certain strings or other little quirks.

So if you ever need to update a bunch of links on Elementor-built pages, this method is a solid (and free) option. Quick, easy, and it gets the job done.

Good luck, and have a great day!