Why isnt code working in new version of theme?

Hi hoping someone can help that knows a little more about code then me. I have recently upgraded my theme and can’t for the life of me work out why certain code is not working on the new theme.

Can anyone help please?

This piece of code adds a “location menu” to the footer. It is located in the footer-classic-liquid

{% comment %} Add Locations Menu under “Legal” {% endcomment %}
{% assign locations_menu = linklists.locations-menu.links %}
{% if block.settings.menu == ‘legal’ and locations_menu.size > 0 %}

.locations-menu-holder{ margin-top: 30px; } .locations-menu-holder > button{ appearance: none; background: none; border: none; padding: 0; margin: 0 0 10px; cursor: pointer; } .locations-menu-holder > button:hover{ color: #30594c; } .locations-menu-holder > button > span{ display: inline-block; font-weight: 600; transition: transform 250ms ease-in-out; } .locations-menu-holder > button.is-active > span{ transform: scaleY(-1); } .locations-menu-holder .footer__menu > .footer__heading{ display: none; } .locations-menu-holder .footer__menu > ul{ max-height: 0; overflow: hidden; transition: all 250ms ease-in-out; opacity: 0; } .locations-menu-holder .footer__menu.locations-shown > ul{ max-height: 10em; opacity: 1; }
Location {% render 'footer__menu', menu_link: 'locations-menu' %}

{% endif %}