I am trying to install a theme to an existing site.

I have copied the theme folders to the core/themes/ folder and clicked install from the admin portal but visiting the site now i get:

Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "drupal_entity" function." at C:\FOLDER\web\core\themes\martex_themes_package\custom\martex\templates\layout\page.html.twig line 95

Are there steps I need to follow to do this? I need to be able to install this template over an existing site.

Comments

I have managed to get this

I have managed to get this part fixed but the page loads now with no css and doesnt have the theme at all.

Are there instructions for how to install this to an existing site? I seen in another post that there are more steps.

On our theme description we

On our theme description we have stated that:

Notes: please install this theme on a new site to have an exact site as our demo. Installing this theme on an existing site will require some efforts and recommended for advanced users.

Pls use the full site install so it is easier to modify it.