I’ve got a couple of sites I’m building in EE2 and have been having problems with snippets in both.
Now and again a snippet will refuse to work and instead I will get the tag outputted literally - for example I created a snippet called top_nav. And when I put it into a template, but it outputted “{top_nav}” literally. This has happened a few times.
Previously I’ve been able to solve it by creating a new snippet named something else, but with the content I want, then deleting the old snippet, then renaming the new one to the name of the old one.
However, now on one of the sites that solution does not work because all new snippets I create now output the tag literally. If I put something else in as a substitute, such as a global variable like site_name it parses correctly. And it doesn’t matter what I put into the snippet. Even ‘xyz’ does not come through.
What might be the cause please?