Skip to main content

Compare Plans Side by Side on an Elementor Page with Addon Elements and AI

Your plans side by side, with prices, buttons and a tick, a cross or your text for every feature, previewed before it goes live.

Difficulty Beginner
Time ~10 min

Prerequisites

A site connected to WPVibe running Elementor 3.27 or newer (free is enough) and Addon Elements for Elementor 1.15.1 or newer (tested on 1.15.1, the free version, with Elementor 4.3.6) on WordPress 6.9 or newer, with an administrator account and the WPVibe plugin up to date. A published page built with Elementor. Your plans: name, price, period, button text and link, and what each includes.

The prompt
My WordPress site uses Elementor and the free Addon Elements for Elementor plugin. Add a section with the heading "[section heading, for example Compare our plans]" and a comparison table to my page [page title]. Plans, in order: [for each plan: name, price, period such as /month, button text and link]. Features, in order: [each feature, and for each plan yes, no or a short text such as 10 GB]. [Optional: mark plan name with a ribbon that says Most popular.] Put it [before the section that starts with X, or at the end of the page].

1. Run discover_abilities with category addon-elements. If eae/list-widgets and eae/get-widget-schema are not both listed, stop and tell me to install and activate Elementor and the free Addon Elements for Elementor plugin (1.15.1 or newer): its AI tools load only while Elementor is active. Run site_info and check its features include content_edit; if not, stop and tell me to update the WPVibe plugin. Run eae/list-widgets and check eae-comparisontable is in the list; if it isn't, stop and tell me to switch it on in wp-admin under Addon Elements, then ask again.
2. Find my page with rest_api GET /wp/v2/pages with search set to [page title], status publish and fields id,title,link. If several match, list them and ask which one; if none match, stop and tell me. PAGE_ID is its id, PAGE_URL its link, and SITE_URL my site's address. Read it with rest_api GET /wp/v2/pages/PAGE_ID with context edit, fields id,modified,meta and max_length 400000. If meta._elementor_edit_mode is not builder, stop and tell me the page isn't built with Elementor. If the read was cut, stop before changing anything and tell me the page is too large for this recipe. MODIFIED is its modified date. meta._elementor_data is the layout, a JSON array: note the id of each top-level element in order, with the first heading or text inside it.
3. Find where the section goes. Before a section: NEXT_ID is the id of the top-level element whose heading or text starts with what I named; if you can't tell which one I meant, list the top-level elements with their first heading and ask. At the end of the page: TAIL is the last 40 characters of meta._elementor_data exactly as stored (after decoding the REST response, so backslashes in the value stay as they are).
4. Run eae/get-widget-schema with input widget eae-comparisontable, and set run_ability's own max_length to 100000, not in the input (some widgets' settings run past WPVibe's default length). If WPVibe still cuts the result, read it in parts: call it again with offset 100, then 200, then 300 and so on, until the offset reaches total_controls (given near the top of the first reply), keeping the keys from every part; parts may overlap; if it says truncated true, call it again with offset next_offset. Read every part before you build. Use only the keys it lists, plus the ones named here. Any key you leave out falls back to the widget's demo content (Our Plan, 39.99, /year, Buy Now, Popular, Bandwidth, Space, Domain, 25GB, 5GB, Feature), so set every text I gave you. Give each new element an id of 8 random lowercase hex characters that is not already in the layout, and each repeater row its own _id of 7. The section is one container (container_type flex, flex_direction column, content_width boxed) with id NEW_ID, holding a heading widget (title [section heading], header_size h2) and one eae-comparisontable widget. Set table_count to the number of plans (2 to 10). features_text has one row per feature, in order, with legend_feature_text. For each plan N, counting from 1: table_title_N, table_currency_symbol_N (my currency symbol, or empty if I gave none), table_price_N (digits only, with a dot only before cents and no thousands separator, such as 1299 or 12.50: the widget splits the price at the dot and shows the cents raised beside the whole number), table_duration_N, button_text_N and item_link_N (url my link; its default is #, so if I gave buttons but left out a link, ask me for it), and feature_items_N with one row per feature in the same order: table_content_type fa fa-check for yes, fa fa-close for no, or text with feature_text for anything else. Only on the plan I marked, table_ribbon_N yes and table_ribbon_text_N my ribbon text. If I gave no prices, set hide_price_row yes and every plan's table_price_N, table_duration_N and table_currency_symbol_N to empty strings; if I gave no buttons, hide_bottom_row yes and every button_text_N empty. Those switches only hide the rows, so the demo prices and Buy Now would otherwise still be in the page's HTML.
5. Save the section on a new draft page first: rest_api_write POST /wpvibe/v1/elementor/save-page with title the page title followed by (AI preview), status draft, page_template elementor_header_footer, and data an array holding only the section. PREVIEW_ID is the id it returns. Give me the preview link, SITE_URL/?page_id=PREVIEW_ID&preview=true (it opens only while I'm logged in), describe the section, and wait for my yes. Nothing on my live page has changed yet. If I say no, ask what to change, make it on the same preview page (save-page again with id PREVIEW_ID and the whole new section), and show me again; if I want none of it, skip to the last step.
6. On my yes, read the page again as in step 2; if its modified date is no longer MODIFIED or its top-level ids are not the ones from step 2, stop and tell me someone edited it. Never resend or retype the page's whole layout: add the section with one small edit, rest_api_write POST /wpvibe/v1/content/edit with target_type meta, post_id PAGE_ID and meta_key _elementor_data, the section written as one compact JSON object. Before a section: old_content is {"id":"NEXT_ID" (with the brace and quotes in front), new_content is the section, a comma, then that same old_content. At the end of the page: run POST /wpvibe/v1/content/search with the same target and pattern TAIL. If it matches exactly once and its snippet runs to the end of the value (snippet_starts_at_char plus the snippet's length is line_length, or line_length is absent because the snippet is the whole value, and it ends with the final closing square bracket), take the snippet's last 60 to 120 characters, copied exactly, as old_content, and as new_content the same text with a comma and the section added just before that final bracket. If not, try once more with the last 20 characters; if that fails too, stop and ask me which section to put it before. content/edit changes only text that matches exactly once and refuses an edit that would leave the layout's JSON broken; if it refuses, tell me what it said. Never use replace_all. Keep the old_content and new_content you used: swapping them is the undo.
7. Read the page again as in step 2 and check every top-level id from step 2 is still there in the same order, with NEW_ID where I wanted it. If not, undo the edit (content/edit with old_content and new_content swapped) and tell me what you saw.
8. Fetch the live page with get_page_html, selector .elementor-element-NEW_ID, and check, in the section's visible text (outside the HTML tags and attributes), that every plan name and the whole-number part of every price (and the cents, shown separately, where a price has them) is there and none of the demo text (Our Plan, 39.99, /year, Buy Now, Popular, Bandwidth, Space, Domain, 25GB, 5GB, Feature) is, except words I gave you myself. If the selector matches nothing, undo the edit and tell me. If something is missing or demo text is there, tell me what and offer the undo. That fetch skips page caches, so then run run_wp_cli cache purge --url=PAGE_URL so visitors get the new version too, and tell me what it reported; if my host caches pages, I purge it there. Also check the table has as many ticks (fa-check) and crosses (fa-times) as I asked for, and no link to #.
9. Ask whether to trash the preview page. Only on my yes, check with rest_api GET /wp/v2/pages/PREVIEW_ID with fields id,status,title that it is a draft whose title ends (AI preview), then run rest_api_write DELETE /wp/v2/pages/PREVIEW_ID (it goes to the trash; WPVibe doesn't ask for approval on this one, so ask me yourself). Tell me how to undo the change: content/edit on the page with the old_content and new_content you used, swapped. Tell me that if this page was open in the Elementor editor during this, I should reload the editor before saving there, or its older copy replaces the new section. List what you changed so I can spot-check it, and give me the page link and its Elementor edit link, SITE_URL/wp-admin/post.php?post=PAGE_ID&action=elementor. Ask me to look at the page on my phone: it shows one plan at a time there, with tabs.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Compare Plans Side by Side on an Elementor Page with Addon Elements and AI” recipe from the WPVibe cookbook on my connected site.

Visitors choosing between your plans, packages or services want one table: what each costs and what each includes, with a tick or a cross on every row. The free Addon Elements plugin has a comparison table for that, but every plan, price, feature row and cell is its own setting, and the ones you miss show demo hosting plans.

The AI looks up the widget’s exact settings with Addon Elements’ own tool, builds the table with your plans, prices, buttons and a tick, a cross or your text in every cell, and saves it on a draft page for you to preview. Your live page changes only on your yes, with one small edit the AI keeps a note of, and it checks the page afterwards for your plans and for leftover demo text.

Have your plans ready: name, price, period, button text and link, and for each feature what each plan gets. On phones the table shows one plan at a time with tabs. Prices are text on the page, not tied to your store. If it can’t find the end of your page’s layout, the AI asks which section to put the table before. For a plain price list visitors can search, see Add a Searchable Price List; for pricing cards, see the Premium Addons and The Plus Addons recipes.

Outcome

A comparison table on your page with your plans, prices, buttons and features, one plan marked if you asked, shown with tabs on phones.