In this example, we'll make an existing piece of content on a website editable through AnyMod.
1. Find the content that you want to make editable
If you have a block of content in mind, find the file for it in your code base and also open the page with your browser.
For this example, we'll use a block of content on a simple web page:
2. Add a mod to your project
In the AnyMod dashboard, click New Mod and then choose the "Content block" mod. Or you can clone the content block mod here.
We're using a simple "Content block" mod for this example, but you can use & customize any other mod to have editable content too. See the mod library for more options.
3. Click the Content button in the mod editor
This will let you edit the content in your new mod.
4. Paste your content into the text editor
Delete the existing content and replace it with your own. Click the Publish button to publish your new content.
Now your content should be showing in the mod preview panel:
5. Replace the HTML on your page
Find the content in your page's HTML, and replace it with your mod tag.
<h2> Example content </h2> <p> Marketing deployment innovator incubator early adopters... </p> <p> Alpha bandwidth infrastructure niche market partnership... </p>
<!-- Example content --> <div id="anymod-lrarn"></div>
Be sure you have added the AnyMod script to the top of your page as well. Learn more about setup here.
6. Reload your page - now it's editable
Your page should look the same as before, but now you can see a pencil on the right side of the page whenever you're logged into AnyMod.
Click the pencil and then select your mod to make live edits directly from your page.
The editor pencil will show on your web page whenever you're logged in to AnyMod. It won't show for your site visitors.
To allow others to make edits, you can either add them to the project on AnyMod, or you can create a draft and send them the link to make edits.