Change a hero's title, button and image kept in Advanced Custom Fields
When your theme builds the top of a page from ACF fields, change the title, button text, link or image through those fields, with your approval on a live page.
- Difficulty
- Beginner
- Time
- about 10 min
- Works with
- Advanced Custom Fields
The top of my page [page name or address] comes from Advanced Custom Fields. List its fields and tell me which ones you can change. Set the title to [new title], the button text to [button text] and its link to [address]. For the background image, give me a link to add [image file] from my computer and use it. Show me every value before and after, wait for my approval, then send me a screenshot of the page.
Already connected?
If SAR is already in your AI app, this is enough:
Change the ACF hero on [page]: title [title], button [text] to [address], and a new image.
What happens
- The AI app reads the page's ACF fields: name, type, current value, and which can be set here.
- For a new image, it gives you a one-time link to add it from your device and gets its media id.
- It sets the simple fields you asked for: text, link, image; repeaters, groups and flexible content are read only, so it tells you if one of yours is among them.
- On a live page the changes wait for your approval in SAR, and each can be undone.
- It takes a screenshot of the page with the new hero.
Approvals involved
Worked out from the tools this recipe uses.
wordpress_get_acf_fieldsAdvanced Custom Fields of a postNonewordpress_upload_from_deviceAdd a file from your deviceNonewordpress_upload_statusUpload statusNonewordpress_set_acf_fieldSet an Advanced Custom FieldApproval once livesar_screenshot_pageScreenshot a pageNone
What you get
A new hero without opening the editor or risking the page's layout.
Related recipes
- Content · about 25 minEmpty Advanced Custom Fields filled in across your pagesFind pages whose custom fields, such as a subtitle or a short description, are still empty, and fill them from each page's own text with your approval.
- Design & builders · about 10 minPut your new logo and browser-tab icon on the siteAdd your logo and icon files from your own device and set them as the site's logo and site icon, each change approved by you and undoable.
- Design & builders · about 15 minSwap the photos on a block editor pageReplace tired photos on a page made in the block editor with free photos or your own, keeping the layout, with one approval for the live page.
Try it on your own site
Install the plugin, add SAR to your AI app and paste the prompt. Free to start.