IF statement not working

ScottStevens_GM
New Member
9 0 0

I am having a duplicate title issue caused by the Shopify Help Center App. Basically, they output their own title and meta description within the content. So I was looking to add an IF into the head around my native title and description tags in the theme.liquid.

Example:

{% if canonical_url != "https://grademobile.co.uk/apps/help-center" %}
<title>output normal title /description</title>
{% endif %}

 

I've tried loads of different ways, using request.path == "apps/help-center" etc - It just doesn't appear to work?

Any suggestions?

0 Likes