This is very basic as I am new to Craft CMS, but I created a Plain Text field in the Homepage section labeled "Tagline". When I enter the Twig code {{ entry.tagline }} into the index.html template, I get the error that the variable "entry" does not exist.

My index.html is at the root of the public folder.

  • 1
    Hi Nick and welcome to the Craft CMS Stack Exchange site! Can you update your question to add details like the URL, where your template file lives, and what the template itself looks like? It sounds like something isn't set up quite right. You can always take a look at the Happy Lager demo site to see an install or compare to what you've got.
    – Matt Stein
    Jun 3, 2017 at 18:56

1 Answer 1


I would say that the index.html should be within your templates folder. Is it? And make sure that you Homepage section is actually pointing to that template. Look at your sections part within Craft CMS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.