Undo or History of edits Templates etc

Is there a undo or history of edits to templates or partials etc. I removed something, saved and would like it undone.

For instance I removed the active class code by mistake on this…

            <ul class="navbar-nav mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link" href="{{ 'account'|page }}">Account</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{{ 'blog'|page }}">Blog</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{{ 'forum'|page }}">Forum</a>
                </li>
                {% if backendUrl %}
                    <li class="nav-item">
                        <a class="nav-link" href="{{ backendUrl }}" target="backend">Backend Area</a>
                    </li>
                {% endif %}
            </ul>

Hi,

You should set up a version control using GitHub for instance, where you could create a repository for your theme.

if you’re looking to retrieve the original content of the demo theme, here is the link;

Ah yes I should have looked there. Thanks

1 Like

Theme Logging can be useful here too:

3 Likes