I've got a local environment with MAMP, Codekit and using Visual Studio Code. I've got my Pantheon site running locally, but whenever I edit a twig file, I can't get the changes to show up on the live reload. I have to commit and push and clear caches on the dev server.
What am I missing so I can do local dev? I want my edits to the twig file to show up locally on live reload.
I'm building my first custom theme, and I'm a big stuck on a custom function. I'm trying to program my article pages to pull field images (associated with that specific article) into the header. I'm new to PHP and not sure if that's where I'm going wrong.
**FYI I've edited the actual theme name to "THEME" in the function below.
I have a news website and I want to print the node's page each time in a different way depending on a field value.
The problem
I have a content type named "Article" in the article there are a number of fields that are going to be visible/invisible depending on a field called "Theme" (Conditional fields) also the "Theme" field is responsible to determine the twig that is going to be used.