Hello I’m hoping a coding expert out there can help!
I am trying to edit code to make the register button in the header go to a different URL.
I found the below code in header.liquid and changed the href from what it was by default, to the page I want to go to (pages/register-now). The button now clicks through to the correct URL, but the content on the page isn’t loading? Is there some code in there that’s preventing the page from loading? Or perhaps I’ve put it in entirely the wrong place?
{%- if settings.account_show_header_button and shop.customer_accounts_enabled -%}
{%- if customer -%}
{{ 'layout.header.account' | t: name: customer.first_name }} {{ 'layout.header.register_and_account_separator' | t }} {{ 'layout.header.sign_out' | t }}
{%- else -%}
{{ 'layout.header.register' | t }} {{ 'layout.header.register_and_account_separator' | t }} {{ 'layout.header.login' | t }}
{%- endif -%}
The page I’m trying to get the register button to go to is https://summitsport.com.au/pages/register-now
Any help would be greatly appreciated!!