Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Developer · Guide

How to Edit Shortcode in WordPress Elementor (Step by Step)

How to Edit Shortcode in WordPress Elementor (Step by Step)

Short answer

To edit a shortcode in Elementor, open the page with Edit with Elementor, click the Shortcode or Text Editor widget that holds it, and change the shortcode in the left panel before clicking Update. To change what the shortcode displays, edit the form, slider or template in its own plugin or in Elementor's Saved Templates.

Key takeaways

  • Click the Shortcode widget in Elementor and edit the field in the left panel.
  • Use the Navigator to find a shortcode on long pages.
  • Change a shortcode's output in the plugin that created it.
  • Template shortcodes update everywhere when you edit the saved template.
  • Clear caches and check for curly quotes if changes do not show.

How do you edit a shortcode in WordPress Elementor?

To edit a shortcode in Elementor, open the page with Edit with Elementor, click the Shortcode widget (or the Text Editor widget) that holds it, change the shortcode text in the left panel, and click Update to save.

That changes the shortcode itself, such as an ID or an attribute. If you want to change what the shortcode displays, like the fields of a form or the photos in a gallery, you usually edit that in the plugin that created the shortcode, not in Elementor.

This guide covers both cases. It also shows how to edit Elementor's own template shortcodes, how to find a shortcode on a long page, and what to do when your changes do not show.

What is a shortcode in Elementor?

A shortcode is a short tag in square brackets, like [contact-form-7 id=“123”], that tells a plugin or theme to output something on the page, and Elementor displays it through its Shortcode widget or any text area that supports shortcodes.

WordPress itself provides the shortcode system. Plugins register a tag, and WordPress swaps the tag for the plugin's output when the page loads. Our explainer on what a shortcode is in WordPress covers this in more detail.

Elementor adds a dedicated Shortcode widget in its free version. You paste the tag into the widget and Elementor renders the result in your layout.

What do you need before editing?

You need editor access to the page in Elementor, the exact shortcode or its source plugin, and ideally a backup or staging copy if the page is important.

Quick checks before you start:

  • Permissions. Your user role must be allowed to edit the page with Elementor.
  • The source plugin. Know which plugin made the shortcode, such as a form, slider or table plugin.
  • A backup. Elementor keeps revisions, but a full backup is safer for key pages like your home page.

If the site is live and busy, consider making the change on a copy first. Our guide on how to set up a staging site for WordPress explains how.

How do you edit the Shortcode widget step by step?

Open the page in Elementor, click the Shortcode widget in the preview, edit the text in the Enter your shortcode field in the left panel, check the preview, and click Update.

Step by step:

  1. In the WordPress dashboard, go to Pages and hover over the page.
  2. Click Edit with Elementor.
  3. In the preview, click the area where the shortcode output appears. The left panel switches to that widget.
  4. In the Content tab, find the shortcode field.
  5. Change the shortcode, for example a new form ID or a different attribute value.
  6. Click Update or Publish at the bottom of the panel.
  7. Open the live page in a new tab to confirm the change.

Some shortcodes only render on the front end. If the preview shows the raw tag or a blank box, that does not always mean something is wrong. Check the live page.

How do you find a shortcode on a long Elementor page?

Use Elementor's Navigator to list every section, container and widget on the page, then click the Shortcode widget in the list to jump straight to it.

Open the Navigator from the editor's top bar or with the keyboard shortcut shown in Elementor's help menu. Widgets are listed by type, so look for Shortcode or Text Editor.

You can rename elements in the Navigator. Giving the widget a clear name like Booking form shortcode saves time next time.

If the shortcode might be in a header, footer or popup, it will not be on the page itself. With Elementor Pro, check Templates > Theme Builder and Templates > Popups for the right template.

How do you edit a shortcode inside a Text Editor widget?

Click the Text Editor widget, switch to the Text or Code tab of its editor if the shortcode is hard to select, change the bracketed tag, and save the page.

Shortcodes work inside the Text Editor widget just like in the classic WordPress editor. They often get added there by accident when content is pasted in.

Be careful with quotes. Word processors can turn straight quotes into curly quotes, which breaks shortcode attributes. Type the quotes again in the editor if a shortcode stops working after pasting.

How do you change what the shortcode displays?

To change the content a shortcode outputs, such as form fields, slides or table rows, open the plugin that owns the shortcode in the WordPress dashboard, edit the item there, and save it.

The shortcode is only a pointer. For example:

  • Contact Form 7: go to Contact > Contact Forms, open the form and edit its fields. The Contact Form 7 docs explain the form editor.
  • WPForms, Gravity Forms and similar: edit the form in the plugin's own builder.
  • Sliders, galleries and tables: edit the item in the plugin's menu.

As long as the ID stays the same, the Elementor page updates automatically. You do not need to touch the Elementor widget at all.

If you have duplicated a form and want the new one on the page, then you do update the shortcode ID in Elementor.

How do you edit an Elementor template shortcode?

Elementor templates have their own shortcode, so to change what it shows, go to Templates > Saved Templates, edit the template with Elementor, and update it; every page using that shortcode then shows the new version.

Each saved template has a shortcode that looks like [elementor-template id=“123”]. You can see it in the Shortcode column of the Saved Templates list.

This lets you reuse a block of content, such as a call to action, across many pages. Elementor's help page on using shortcodes describes how template shortcodes work.

To change which template appears, edit the ID in the Shortcode widget. To change the template's content, edit the template itself. Our guide on how to use Elementor templates covers saving and managing templates.

Shortcode widget vs other ways to add shortcodes

Elementor offers a few ways to place a shortcode, and each suits a different job, from a simple widget to dynamic tags in Pro.

MethodAvailable inBest forHow you edit it
Shortcode widgetElementor freePlacing a single plugin outputClick the widget, edit the field
Text Editor widgetElementor freeShortcodes mixed with textEdit the text in the widget
Shortcode dynamic tagElementor ProFeeding output into another widget's fieldOpen the dynamic tag settings
Template shortcodeElementor Pro templatesReusing a saved designEdit the template, or change the ID

If you only use one or two shortcodes on a site, the free Shortcode widget is all you need.

How do you edit the code behind a custom shortcode?

If the shortcode was written for your site, its output comes from a PHP function registered with add_shortcode, so you edit that function in your child theme, a custom plugin or a code snippets plugin, not in Elementor.

Look for add_shortcode in your child theme's functions.php file or in your snippets plugin. The WordPress developer reference for add_shortcode explains how the function and its callback work.

Never edit a plugin's files directly. Updates will overwrite your changes. Use a snippets plugin instead, as shown in our guide on how to use the WPCode plugin.

Always test code changes on staging first. One missing bracket in PHP can take down the whole site.

Why are your shortcode changes not showing?

Shortcode edits usually fail to show because of caching, a typo or curly quotes in the tag, the wrong template being edited, or a shortcode that only renders on the live page and not in the Elementor preview.

Try these fixes in order:

  1. Clear caches. Clear your caching plugin, server cache and CDN. Elementor also has a Regenerate CSS & Data tool under its settings. See how to clear cache in WordPress.
  2. Check the tag. Look for missing brackets, wrong IDs and curly quotes.
  3. Check where the content lives. It may be in a header, footer or popup template, not the page.
  4. Check the plugin. If the source plugin is deactivated, WordPress shows the raw tag as text.
  5. View the live page. Some shortcodes depend on scripts that do not run inside the editor.

If the Elementor editor itself will not open, our guide on fixing the Elementor editor not loading can help.

Can you edit shortcodes without Elementor?

Yes, if a page was built with Elementor you should keep editing it in Elementor, but shortcodes in normal posts can be edited in the block editor using the Shortcode block.

Editing an Elementor page in the block editor can show a warning and may break the layout. Stick with Edit with Elementor for those pages.

For other content, WordPress has a core Shortcode block. Click it and edit the text the same way.

Keep a short list of the shortcodes your site uses and where they appear. It makes future edits and plugin changes far easier.

Frequently asked questions

Where is the Shortcode widget in Elementor?

Open the page with Edit with Elementor and type Shortcode in the search box of the widget panel. It is part of the free version of Elementor, so you do not need Pro to use it.

Why does my shortcode show as plain text in Elementor?

Usually the plugin that registers the shortcode is deactivated, the tag has a typo, or it was placed in a widget that does not process shortcodes. Check the plugin is active and the tag is spelled exactly right.

Can I edit a shortcode's design in Elementor?

Only partly. Elementor can style the widget's wrapper, such as margins and background, but the inside of the output is controlled by the source plugin and its own style settings or CSS.

How do I find the ID of an Elementor template shortcode?

Go to Templates and then Saved Templates in the dashboard. The Shortcode column shows the full shortcode, including the template ID, which you can copy and paste into a Shortcode widget.

Will editing a template shortcode change every page?

Yes. Every page that uses the same template shortcode shows the updated template after you save it and clear any caches.

Sources

  1. Shortcode widget Elementor
  2. Elementor Shortcodes Elementor
  3. add_shortcode() WordPress Developer Resources
  4. Shortcode block WordPress.org
  5. Contact Form 7 Docs Contact Form 7

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.